diff options
author | Rémy Coutable <remy@rymai.me> | 2018-09-10 11:48:09 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-09-10 11:48:09 +0200 |
commit | 3bf1cd5780fc6f08eac8046c8a6b475b8f7f30b7 (patch) | |
tree | f35b6cf6c41b30d41641baae254570923ff20062 /spec/spec_helper.rb | |
parent | a5517ada119a0e73e0a70fd18e11fda3932138e8 (diff) | |
download | gitlab-ce-3bf1cd5780fc6f08eac8046c8a6b475b8f7f30b7.tar.gz |
Ensure in-memory application settings are cleared before each test
Signed-off-by: Rémy Coutable <remy@rymai.me>
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 c4bb1c13f2e..d1337325973 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -135,6 +135,10 @@ RSpec.configure do |config| Fog.unmock! if Fog.mock? end + config.after(:example) do + Gitlab::CurrentSettings.clear_in_memory_application_settings! + end + config.before(:example, :mailer) do reset_delivered_emails! end |