summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-06-05 16:17:04 +0200
committerKamil Trzciński <ayufan@ayufan.eu>2018-06-05 16:48:42 +0200
commit53d1c87c8673fa6c9d83519490698b37d67572df (patch)
tree7012ea95208e7b93bc8ddef4c6f45c24662cdbb1 /spec/spec_helper.rb
parent3201988b4d3804cbdf2560ee9064d0dbc43bf354 (diff)
downloadgitlab-ce-53d1c87c8673fa6c9d83519490698b37d67572df.tar.gz
Fix Fog mocking
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb4
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