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-16 15:07:17 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-08-16 15:07:17 +0300
commitd90b0f8c996906682e5ad9125eb60f6115cce559 (patch)
tree54b0fa4896fb4cf99b120b588cebc0270bb65b5e /spec/support/db_cleaner.rb
parente2030ca01928c77c02b5d6d9b54a0f59100f9fe9 (diff)
Disable db_cleaner tables caching in migrations tests
Diffstat (limited to 'spec/support/db_cleaner.rb')
-rw-r--r--spec/support/db_cleaner.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/db_cleaner.rb b/spec/support/db_cleaner.rb
index 7492f999a18..b0f520d08e8 100644
--- a/spec/support/db_cleaner.rb
+++ b/spec/support/db_cleaner.rb
@@ -19,8 +19,8 @@ RSpec.configure do |config|
DatabaseCleaner.strategy = :truncation
end
- config.before(:context, :migration) do
- DatabaseCleaner.strategy = :truncation
+ config.before(:each, :migration) do
+ DatabaseCleaner.strategy = :truncation, { cache_tables: false }
end
config.before(:each) do