diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-06-05 16:17:04 +0200 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-06-05 16:48:42 +0200 |
commit | 53d1c87c8673fa6c9d83519490698b37d67572df (patch) | |
tree | 7012ea95208e7b93bc8ddef4c6f45c24662cdbb1 /spec/spec_helper.rb | |
parent | 3201988b4d3804cbdf2560ee9064d0dbc43bf354 (diff) | |
download | gitlab-ce-53d1c87c8673fa6c9d83519490698b37d67572df.tar.gz |
Fix Fog mocking
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index d3de2331244..e093444121a 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -133,6 +133,10 @@ RSpec.configure do |config| RequestStore.clear! end + config.after(:example) do + Fog.unmock! if Fog.mock? + end + config.before(:example, :mailer) do reset_delivered_emails! end |