Fix tests
This commit is contained in:
@ -13,7 +13,11 @@ RSpec.configure do |config|
|
||||
mocks.verify_partial_doubles = true
|
||||
end
|
||||
|
||||
config.after(:suite) do
|
||||
config.before :each do
|
||||
stub_request(:post, 'https://fcm.googleapis.com/fcm/send').to_return(status: 200, body: '')
|
||||
end
|
||||
|
||||
config.after :suite do
|
||||
FileUtils.rm_rf(Dir["#{Rails.root}/spec/test_files/"])
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user