diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-08-16 15:07:17 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-08-16 15:07:17 +0300 |
commit | d90b0f8c996906682e5ad9125eb60f6115cce559 (patch) | |
tree | 54b0fa4896fb4cf99b120b588cebc0270bb65b5e /spec/support/db_cleaner.rb | |
parent | e2030ca01928c77c02b5d6d9b54a0f59100f9fe9 (diff) |
Disable db_cleaner tables caching in migrations tests
Diffstat (limited to 'spec/support/db_cleaner.rb')
-rw-r--r-- | spec/support/db_cleaner.rb | 4 |
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 |