RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: mceachen
Site: http://matthew.mceachen.us/
This works for transactions (tons faster than :truncation):
:truncation
DatabaseCleaner.strategy = :transaction class MiniTest::Spec before :each do DatabaseCleaner.start end after :each do DatabaseCleaner.clean end end
This works for transactions (tons faster than
:truncation
):