mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-30 04:01:00 -05:00
22 lines
368 B
Ruby
22 lines
368 B
Ruby
RSpec.configure do |config|
|
|
config.before(:suite) do
|
|
DatabaseCleaner.clean_with(:truncation)
|
|
end
|
|
|
|
config.before do
|
|
DatabaseCleaner.strategy = :transaction
|
|
end
|
|
|
|
config.before(:each, js: true) do
|
|
DatabaseCleaner.strategy = :truncation
|
|
end
|
|
|
|
config.before do
|
|
DatabaseCleaner.start
|
|
end
|
|
|
|
config.after do
|
|
DatabaseCleaner.clean
|
|
end
|
|
end
|