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:
parent
703b6387ee
commit
cc62ec1e8c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue