Skip to content

Instantly share code, notes, and snippets.

@daniel-nelson
Created October 21, 2011 20:07
Show Gist options
  • Save daniel-nelson/1304821 to your computer and use it in GitHub Desktop.
Save daniel-nelson/1304821 to your computer and use it in GitHub Desktop.
config.use_transactional_fixtures = false
config.before(:suite) do
DatabaseCleaner.strategy = :truncation
end
config.before(:each) do
DatabaseCleaner.start
end
config.after(:each) do
DatabaseCleaner.clean
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment