diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-08-23 12:28:52 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-08-23 15:09:29 +0300 |
commit | 72018278a4bf79a3cdfa63258534d4bbc8ac8161 (patch) | |
tree | 38f00c0329d545416c371d874f0b2c276388a394 /spec/support/db_cleaner.rb | |
parent | 78a0d27e98cea4ed1b59377edc93588127b297fe (diff) |
Invalidate cache before cleaning db in tests after context
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 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 |