|
|
@ -13,7 +13,11 @@ RSpec.configure do |config| |
|
|
|
mocks.verify_partial_doubles = true |
|
|
|
mocks.verify_partial_doubles = true |
|
|
|
end |
|
|
|
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/"]) |
|
|
|
FileUtils.rm_rf(Dir["#{Rails.root}/spec/test_files/"]) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|