spec: during js specs, cleanup database using deletion

This attempts to solve the database deadlock on cleanup by fiddling
with the settings.

Ref #4293
This commit is contained in:
Pierre de La Morinerie 2019-09-10 16:08:38 +02:00
parent f99a80147e
commit d94a5cee8e

View file

@ -10,7 +10,7 @@ RSpec.configure do |config|
end
config.before(:each, js: true) do
DatabaseCleaner.strategy = :truncation, { except: expect_list }
DatabaseCleaner.strategy = :deletion, { except: expect_list }
end
config.before(:each) do