diff options
author | Renato Mascarenhas <mascarenhas.renato@gmail.com> | 2012-12-01 22:27:55 -0200 |
---|---|---|
committer | Renato Mascarenhas <mascarenhas.renato@gmail.com> | 2012-12-01 22:30:34 -0200 |
commit | cc62ec1e8cac92acbb3cbcfe0d9941d4c084a226 (patch) | |
tree | 2c62778cecad5797a102759a4099b04ad93e8b2c /activemodel | |
parent | 703b6387ee30c6bc339f567f44db77dcec92bd80 (diff) | |
download | rails-cc62ec1e8cac92acbb3cbcfe0d9941d4c084a226.tar.gz rails-cc62ec1e8cac92acbb3cbcfe0d9941d4c084a226.tar.bz2 rails-cc62ec1e8cac92acbb3cbcfe0d9941d4c084a226.zip |
Actually test that ActiveModel::Errors#add defaults to :invalid.
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/test/cases/errors_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/test/cases/errors_test.rb b/activemodel/test/cases/errors_test.rb index e4df494b2c..1ffce1ae47 100644 --- a/activemodel/test/cases/errors_test.rb +++ b/activemodel/test/cases/errors_test.rb @@ -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 |