Commit 45e71477 authored by Benjamin Neff's avatar Benjamin Neff Committed by Steffen van Bergerem

Don't truncate ar_internal_metadata after cucumber scenarios

This is an internal active record table and shouldn't be touched. When
this is truncated you need to fix it again by running
`bin/rails db:environment:set RAILS_ENV=test`

This is a temporary fix until there is a new version of
database_cleaner.

closes #7606
parent 460178ad
......@@ -51,6 +51,9 @@ Capybara.default_max_wait_time = 30
# of your scenarios, as this makes it hard to discover errors in your application.
ActionController::Base.allow_rescue = false
# TODO: Temporary fix for rails 5, remove the next line after a new version of database_cleaner is released.
# See https://github.com/DatabaseCleaner/database_cleaner/issues/445
Cucumber::Rails::Database.javascript_strategy = :truncation, {except: %w[ar_internal_metadata]}
Cucumber::Rails::Database.autorun_database_cleaner = true
Cucumber::Rails::World.use_transactional_tests = false
......
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