Fix up RSpec tests

This commit is contained in:
CactusPuppy 2021-03-23 13:01:22 -07:00
parent 92926effa5
commit d75ba79b3d
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82
4 changed files with 13 additions and 2 deletions

View file

@ -11,6 +11,7 @@ RSpec.configure do |config|
config.before(:each) do
mock_commercial_request
mock_image_request
mock_default_mailbluster
end
end
@ -39,3 +40,7 @@ def mock_image_request
WebMock.stub_request(:post, 'https://api.cloudinary.com/v1_1/snapcon/image/destroy')
.to_return(status: 200, body: {}.to_json, headers: {})
end
def mock_default_mailbluster
WebMock.stub_request(:any, /api.mailbluster.com/)
end