2014-05-10 15:55:17 +02:00
|
|
|
RSpec.configure do |config|
|
|
|
|
|
config.before(:suite) do
|
|
|
|
|
DatabaseCleaner.clean_with(:truncation)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
config.before(:each) do
|
|
|
|
|
DatabaseCleaner.strategy = :transaction
|
|
|
|
|
end
|
2014-08-18 21:26:45 +03:00
|
|
|
|
2014-07-21 14:49:05 +02:00
|
|
|
config.before(:each, js: true) do
|
2014-05-10 15:55:17 +02:00
|
|
|
DatabaseCleaner.strategy = :truncation
|
|
|
|
|
end
|
|
|
|
|
end
|