Fix up RSpec tests
This commit is contained in:
parent
92926effa5
commit
d75ba79b3d
4 changed files with 13 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue