Commit 72018278 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Invalidate cache before cleaning db in tests after context

parent 78a0d27e
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment