b80dd3d242
Merge branch 'master' into non-interactive-aws-install Conflicts: doc/installation.md Fix merge mess in installation.md
19 lines
373 B
Ruby
19 lines
373 B
Ruby
require 'database_cleaner'
|
|
|
|
RSpec.configure do |config|
|
|
config.before do
|
|
if example.metadata[:js]
|
|
DatabaseCleaner.strategy = :truncation
|
|
Capybara::Selenium::Driver::DEFAULT_OPTIONS[:resynchronize] = true
|
|
else
|
|
DatabaseCleaner.strategy = :transaction
|
|
end
|
|
|
|
DatabaseCleaner.start
|
|
end
|
|
|
|
config.after do
|
|
DatabaseCleaner.clean
|
|
end
|
|
end
|