Switch database cleaner strategy back to transaction after js test has run

This commit is contained in:
Rohan Mitchell
2012-06-26 16:05:21 +10:00
parent e0e566e625
commit 09f5bb8eed

View File

@@ -52,12 +52,16 @@ Spork.prefork do
DatabaseCleaner.strategy = :transaction
end
config.before(:each) do
DatabaseCleaner.start
end
config.before(type: :request, js: true) do
DatabaseCleaner.strategy = :truncation, { :except => ['spree_countries', 'spree_states'] }
end
config.before(:each) do
DatabaseCleaner.start
config.before(js: false) do
DatabaseCleaner.strategy = :transaction
end
config.after(:each) do