Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix typo in Truncation options error message
  • Loading branch information
joshuaflanagan committed Dec 22, 2011
1 parent 501025b commit bd13f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/database_cleaner/generic/truncation.rb
Expand Up @@ -6,7 +6,7 @@ def initialize(opts={})
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]
Expand Down

0 comments on commit bd13f22

Please sign in to comment.