mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Merge branch 'master' of github.com:bmabey/database_cleaner
This commit is contained in:
commit
d6884704c0
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(',')}."
|
||||
end
|
||||
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
|
||||
|
||||
@only = opts[:only]
|
||||
|
|
Loading…
Reference in a new issue