README.md in pseudo_cleaner-0.0.30 vs README.md in pseudo_cleaner-0.0.31

- old
+ new

@@ -59,10 +59,13 @@ To integrate the PseudoCleaner with Rspec, simply add the following lines to `spec_helper.rb`: require 'pseudo_cleaner' require 'pseudo_cleaner/rspec' +Add the lines as early as possible in the spec_helper because the hooks used are before and after hooks. Adding the +hooks early will wrap other hooks in the transaction. + All tests will now by default use DatabaseCleaner with the `:transaction` strategy. For most tests, this will wrap the test in a transaction, and roll back the transaction at the end of the test. If a test is a feature test which uses Capybara using the `:js` tag, that test will be switched to not use DatabaseCleaner. Instead, the test will use the `:pseudo_delete` strategy which as described will store the state of @@ -83,10 +86,19 @@ expect(something).to work end ### Cucumber -Cucumber integration similar to Rspec integration is planned, but not implemented yet. +Cucumber integration similar to Rspec integration simply add the cucumber hook file instead. + + require 'pseudo_cleaner' + require 'pseudo_cleaner/cucumber' + +### Spinach + +Spinach integration hasn't been fully tested. + +It probably should work. ### Manual There are two ways to use the cleaner manually. When you use the cleaner manually, you are only using the PseduoCleaner. You do not get DatabaseCleaner integration like you get automatically with Rspec. This will create