Fixed doc typo. Thanks to Matt Morris for pointing it out.
This commit is contained in:
parent
410e5f07a1
commit
114fe2f7b2
|
@ -22,11 +22,11 @@ h2. How to use
|
|||
|
||||
With the :truncation strategy you can also pass in options, for example:
|
||||
<pre>
|
||||
DatabaseCleaner.strategy = :truncation, {:only => %[widigets dogs some_other_table]}
|
||||
DatabaseCleaner.strategy = :truncation, {:only => %w[widgets dogs some_other_table]}
|
||||
</pre>
|
||||
|
||||
<pre>
|
||||
DatabaseCleaner.strategy = :truncation, {:except => %[widigets]}
|
||||
DatabaseCleaner.strategy = :truncation, {:except => %w[widgets]}
|
||||
</pre>
|
||||
|
||||
(I should point out the truncation strategy will never truncate your schema_migrations table.)
|
Loading…
Reference in New Issue