Nicolae Claudius
13 years ago
5 changed files with 27 additions and 5 deletions
@ -0,0 +1,16 @@
|
||||
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 |
Loading…
Reference in new issue