Skip to content

Instantly share code, notes, and snippets.

@evanwalsh
Created November 2, 2011 01:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evanwalsh/1332546 to your computer and use it in GitHub Desktop.
Save evanwalsh/1332546 to your computer and use it in GitHub Desktop.
database_cleaner with MiniTest::Spec
require 'database_cleaner'
DatabaseCleaner.strategy = :truncation
class MiniTest::Spec
before :each do
DatabaseCleaner.clean
end
end
@helloqidi
Copy link

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment