Fix tests
This commit is contained in:
parent
3f075c7794
commit
83ccdeb87a
2 changed files with 12 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue