Merge pull request #88 from joshuaflanagan/patch-1

Fix typo in Truncation options error message
This commit is contained in:
Ben Mabey 2011-12-22 07:57:10 -08:00
commit 21fae67965

View file

@ -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]