Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
database_cleaner with MiniTest::Spec
require 'database_cleaner'
DatabaseCleaner.strategy = :truncation
class MiniTest::Spec
before :each do
DatabaseCleaner.clean
end
end
@helloqidi

This comment has been minimized.

Copy link

@helloqidi helloqidi commented Nov 21, 2011

thanks!

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