Fix typo in README :D 'Database' -> 'DatabaseCleaner'

This commit is contained in:
hoshinotsuyoshi 2017-01-31 22:33:22 +09:00
parent 05d4d8510b
commit cd12291fcb
No known key found for this signature in database
GPG key ID: C06827B443E51564

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'