1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

This commit is contained in:
Renato Mascarenhas 2012-12-01 22:27:55 -02:00
parent 703b6387ee
commit cc62ec1e8c

View file

@ -116,7 +116,7 @@ class ErrorsTest < ActiveModel::TestCase
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