mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-23 16:13:14 +01:00
23 lines
403 B
Ruby
23 lines
403 B
Ruby
|
RSpec.configure do |config|
|
||
|
config.before(:suite) do
|
||
|
DatabaseCleaner.clean_with(:truncation)
|
||
|
end
|
||
|
|
||
|
config.before(:each) do
|
||
|
DatabaseCleaner.strategy = :transaction
|
||
|
end
|
||
|
|
||
|
config.before(:each, type: :feature) do
|
||
|
DatabaseCleaner.strategy = :truncation
|
||
|
end
|
||
|
|
||
|
config.before(:each) do
|
||
|
DatabaseCleaner.start
|
||
|
end
|
||
|
|
||
|
config.append_after(:each) do
|
||
|
DatabaseCleaner.clean
|
||
|
end
|
||
|
|
||
|
end
|