Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-08-23 12:28:52 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-08-23 15:09:29 +0300
commit72018278a4bf79a3cdfa63258534d4bbc8ac8161 (patch)
tree38f00c0329d545416c371d874f0b2c276388a394 /spec/support
parent78a0d27e98cea4ed1b59377edc93588127b297fe (diff)
Invalidate cache before cleaning db in tests after context
Diffstat (limited to 'spec/support')
-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 b0f520d08e8..edaee03ea6c 100644
--- a/spec/support/db_cleaner.rb
+++ b/spec/support/db_cleaner.rb
@@ -4,18 +4,18 @@ RSpec.configure do |config|
end
config.append_after(:context) do
- DatabaseCleaner.clean_with(:truncation)
+ DatabaseCleaner.clean_with(:truncation, cache_tables: false)
end
config.before(:each) do
DatabaseCleaner.strategy = :transaction
end
- config.before(:each, js: true) do
+ config.before(:each, :js) do
DatabaseCleaner.strategy = :truncation
end
- config.before(:each, truncate: true) do
+ config.before(:each, :truncate) do
DatabaseCleaner.strategy = :truncation
end