diff options
author | Semyon Pupkov <mail@semyonpupkov.com> | 2018-12-11 11:29:58 +0500 |
---|---|---|
committer | Semyon Pupkov <mail@semyonpupkov.com> | 2018-12-11 11:29:58 +0500 |
commit | db267fa31bcbf991a2efb932b85a8935a13b0941 (patch) | |
tree | 2c734e642dd3f89e25d23d114ccc334e2ec60e81 /spec/support/db_cleaner.rb | |
parent | 185f8a5da6b4bd6090aa41e5f39ad0381200ee84 (diff) | |
download | gitlab-ce-db267fa31bcbf991a2efb932b85a8935a13b0941.tar.gz |
Fix RSpec/HookArgument rubocop offense
Diffstat (limited to 'spec/support/db_cleaner.rb')
-rw-r--r-- | spec/support/db_cleaner.rb | 6 |
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 |