diff --git a/README.textile b/README.textile index 75127fb..2cfe816 100644 --- a/README.textile +++ b/README.textile @@ -80,6 +80,22 @@ strategy the remaining time. To accomplish this you can say: # then make the DatabaseCleaner.start and DatabaseCleaner.clean calls appropriately +h3. Minitest Example + +
+DatabaseCleaner.strategy = :transaction
+
+class MiniTest::Spec
+  before :each do
+    DatabaseCleaner.clean
+  end
+
+  after :each do
+    DatabaseCleaner.clean
+  end
+end
+
+ h3. RSpec Example