summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorSemyon Pupkov <mail@semyonpupkov.com>2018-12-11 11:29:58 +0500
committerSemyon Pupkov <mail@semyonpupkov.com>2018-12-11 11:29:58 +0500
commitdb267fa31bcbf991a2efb932b85a8935a13b0941 (patch)
tree2c734e642dd3f89e25d23d114ccc334e2ec60e81 /spec/spec_helper.rb
parent185f8a5da6b4bd6090aa41e5f39ad0381200ee84 (diff)
downloadgitlab-ce-db267fa31bcbf991a2efb932b85a8935a13b0941.tar.gz
Fix RSpec/HookArgument rubocop offense
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 3fedb9ed48c..8e424afffa5 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -115,7 +115,7 @@ RSpec.configure do |config|
TestEnv.clean_test_path
end
- config.before(:example) do
+ config.before do
# Enable all features by default for testing
allow(Feature).to receive(:enabled?) { true }
@@ -136,11 +136,11 @@ RSpec.configure do |config|
RequestStore.clear!
end
- config.after(:example) do
+ config.after do
Fog.unmock! if Fog.mock?
end
- config.after(:example) do
+ config.after do
Gitlab::CurrentSettings.clear_in_memory_application_settings!
end