2015-08-13 15:55:19 +02:00
|
|
|
RSpec.configure do |config|
|
|
|
|
config.before(:suite) do
|
2015-08-14 14:05:09 +02:00
|
|
|
DatabaseCleaner.clean_with(:truncation, {:except => %w[evenement_vies formulaires types_piece_jointe]})
|
2015-08-13 15:55:19 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
config.before(:each) do
|
|
|
|
DatabaseCleaner.strategy = :transaction
|
|
|
|
end
|
|
|
|
|
|
|
|
config.before(:each) do
|
|
|
|
DatabaseCleaner.start
|
|
|
|
end
|
|
|
|
|
|
|
|
config.after(:each) do
|
|
|
|
DatabaseCleaner.clean
|
|
|
|
end
|
|
|
|
end
|