You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
276 B
17 lines
276 B
13 years ago
|
RSpec.configure do |config|
|
||
|
|
||
|
config.before(:suite) do
|
||
|
DatabaseCleaner.strategy = :transaction
|
||
|
DatabaseCleaner.clean_with(:truncation)
|
||
|
end
|
||
|
|
||
|
config.before(:each) do
|
||
|
DatabaseCleaner.start
|
||
|
end
|
||
|
|
||
|
config.after(:each) do
|
||
|
DatabaseCleaner.clean
|
||
|
end
|
||
|
|
||
|
end
|