Skip to content

Instantly share code, notes, and snippets.

@BlakeWilliams
Created August 18, 2013 06:36
Show Gist options
  • Select an option

  • Save BlakeWilliams/6260225 to your computer and use it in GitHub Desktop.

Select an option

Save BlakeWilliams/6260225 to your computer and use it in GitHub Desktop.
config.before(:suite) do
DatabaseCleaner.clean_with(:deletion)
end
config.before(:each) do
DatabaseCleaner.strategy = :transaction
end
config.before(:each, js: true) do
DatabaseCleaner.strategy = :deletion
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