summaryrefslogtreecommitdiff
path: root/spec/support/db_cleaner.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/support/db_cleaner.rb
parent185f8a5da6b4bd6090aa41e5f39ad0381200ee84 (diff)
downloadgitlab-ce-db267fa31bcbf991a2efb932b85a8935a13b0941.tar.gz
Fix RSpec/HookArgument rubocop offense
Diffstat (limited to 'spec/support/db_cleaner.rb')
-rw-r--r--spec/support/db_cleaner.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/db_cleaner.rb b/spec/support/db_cleaner.rb
index 5edc5de2a09..34b9efaaecd 100644
--- a/spec/support/db_cleaner.rb
+++ b/spec/support/db_cleaner.rb
@@ -23,7 +23,7 @@ RSpec.configure do |config|
DatabaseCleaner.clean_with(:deletion, cache_tables: false)
end
- config.before(:each) do
+ config.before do
DatabaseCleaner.strategy = :transaction
end
@@ -39,11 +39,11 @@ RSpec.configure do |config|
DatabaseCleaner.strategy = :deletion, { cache_tables: false }
end
- config.before(:each) do
+ config.before do
DatabaseCleaner.start
end
- config.append_after(:each) do
+ config.append_after do
DatabaseCleaner.clean
end
end