Skip to content

Instantly share code, notes, and snippets.

@aarondufall
Created December 19, 2014 23:05
Show Gist options
  • Save aarondufall/2a45340dd0259803c810 to your computer and use it in GitHub Desktop.
Save aarondufall/2a45340dd0259803c810 to your computer and use it in GitHub Desktop.
config.before(:each) do
DatabaseCleaner.strategy = :truncation
end
config.before(:each, :js => true) do
DatabaseCleaner.strategy = :truncation
end
config.before(:each) do
DatabaseCleaner.start
end
config.after do
DatabaseCleaner.clean
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment