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:
parent
f99a80147e
commit
d94a5cee8e
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ RSpec.configure do |config|
|
||||||
end
|
end
|
||||||
|
|
||||||
config.before(:each, js: true) do
|
config.before(:each, js: true) do
|
||||||
DatabaseCleaner.strategy = :truncation, { except: expect_list }
|
DatabaseCleaner.strategy = :deletion, { except: expect_list }
|
||||||
end
|
end
|
||||||
|
|
||||||
config.before(:each) do
|
config.before(:each) do
|
||||||
|
|
Loading…
Reference in a new issue