mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Merge pull request #88 from joshuaflanagan/patch-1
Fix typo in Truncation options error message
This commit is contained in:
commit
21fae67965
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ module DatabaseCleaner
|
||||||
raise ArgumentError, "The only valid options are :only and :except. You specified #{opts.keys.join(',')}."
|
raise ArgumentError, "The only valid options are :only and :except. You specified #{opts.keys.join(',')}."
|
||||||
end
|
end
|
||||||
if opts.has_key?(:only) && opts.has_key?(:except)
|
if opts.has_key?(:only) && opts.has_key?(:except)
|
||||||
raise ArgumentError, "You may only specify either :only or :either. Doing both doesn't really make sense does it?"
|
raise ArgumentError, "You may only specify either :only or :except. Doing both doesn't really make sense does it?"
|
||||||
end
|
end
|
||||||
|
|
||||||
@only = opts[:only]
|
@only = opts[:only]
|
||||||
|
|
Loading…
Reference in a new issue