Add Minitest example

This commit is contained in:
Trung Lê 2012-04-29 13:23:27 +10:00
parent 205331686d
commit 53ebc8d88f

View file

@ -80,6 +80,22 @@ strategy the remaining time. To accomplish this you can say:
# then make the DatabaseCleaner.start and DatabaseCleaner.clean calls appropriately
</pre>
h3. Minitest Example
<pre>
DatabaseCleaner.strategy = :transaction
class MiniTest::Spec
before :each do
DatabaseCleaner.clean
end
after :each do
DatabaseCleaner.clean
end
end
</pre>
h3. RSpec Example
<pre>