summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-08-16 14:07:17 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-08-16 14:07:17 +0200
commitd90b0f8c996906682e5ad9125eb60f6115cce559 (patch)
tree54b0fa4896fb4cf99b120b588cebc0270bb65b5e /spec
parente2030ca01928c77c02b5d6d9b54a0f59100f9fe9 (diff)
downloadgitlab-ce-d90b0f8c996906682e5ad9125eb60f6115cce559.tar.gz
Disable db_cleaner tables caching in migrations tests
Diffstat (limited to 'spec')
-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