From 5629deeff96e896cb36ca6b03c5492595781270a Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Tue, 23 Feb 2021 22:15:50 -0800 Subject: [PATCH] make the cloudinary mock request more generic --- spec/support/external_request.rb | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/spec/support/external_request.rb b/spec/support/external_request.rb index 5706f049..8109a624 100644 --- a/spec/support/external_request.rb +++ b/spec/support/external_request.rb @@ -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