make the cloudinary mock request more generic

This commit is contained in:
Michael Ball 2021-02-23 22:15:50 -08:00
parent b553b95143
commit 5629deeff9

View file

@ -36,15 +36,5 @@ end
def mock_image_request
WebMock.stub_request(:post, "https://api.cloudinary.com/v1_1/snapcon/image/destroy").
with(
body: {},
headers: {
'Accept'=>'*/*',
'Accept-Encoding'=>'gzip, deflate',
'Content-Length'=>'111',
'Content-Type'=>'application/x-www-form-urlencoded',
'Host'=>'api.cloudinary.com',
'User-Agent'=>'CloudinaryRuby/1.11.1'
}).
to_return(status: 200, body: {}.to_json, headers: {})
end