Merge pull request #473 from hoshinotsuyoshi/fix-typo-in-readme

Fix typo in README :D 'Database' -> 'DatabaseCleaner'
This commit is contained in:
Ernesto Tagwerker 2017-02-02 13:13:00 -05:00 committed by GitHub
commit 98d6a84158

View file

@ -166,7 +166,7 @@ passed to [`keys`](http://redis.io/commands/keys)).
(I should point out the truncation strategy will never truncate your schema_migrations table.)
Some strategies need to be started before tests are run (for example the `:transaction` strategy needs to know to open up a transaction). This can be accomplished by calling `DatabaseCleaner.start` at the beginning of the run, or by running the tests inside a block to `Database.cleaning`. So you would have:
Some strategies need to be started before tests are run (for example the `:transaction` strategy needs to know to open up a transaction). This can be accomplished by calling `DatabaseCleaner.start` at the beginning of the run, or by running the tests inside a block to `DatabaseCleaner.cleaning`. So you would have:
```ruby
require 'database_cleaner'