Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Rspec.configure do |config|
- ###...other stuff
- config.before(:suite) do
- DatabaseCleaner.strategy = :truncation
- DatabaseCleaner.clean_with(:truncation)
- end
- config.after(:each) do
- DatabaseCleaner.clean
- end
- end
Add Comment
Please, Sign In to add comment