Permalink
Browse files

Actually test that ActiveModel::Errors#add defaults to :invalid.

  • Loading branch information...
1 parent 703b638 commit cc62ec1e8cac92acbb3cbcfe0d9941d4c084a226 @rmascarenhas rmascarenhas committed Dec 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/test/cases/errors_test.rb
@@ -116,7 +116,7 @@ def test_has_key?
test "added? should default message to :invalid" do
person = Person.new
- person.errors.add(:name, :invalid)
+ person.errors.add(:name)
assert person.errors.added?(:name)
end

0 comments on commit cc62ec1

Please sign in to comment.