aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-03-25 08:56:29 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-03-25 08:56:29 -0700
commitba012fa04d567438d42f37f9454c6062663e6e4f (patch)
treefe2be7ecdb3d75f91d86a4ad3b00cd2c9650c749 /activemodel
parent1d4541900dd9e5786bee5b700a651f996a379f48 (diff)
parent24fee97581824e6c8fde166ef15b3a28038a9ab8 (diff)
downloadrails-ba012fa04d567438d42f37f9454c6062663e6e4f.tar.gz
rails-ba012fa04d567438d42f37f9454c6062663e6e4f.tar.bz2
rails-ba012fa04d567438d42f37f9454c6062663e6e4f.zip
Merge pull request #9864 from vipulnsward/fix_test_AR_v2
Introduce test on Error#full_message for attribute with underscores; Fix...
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/test/cases/errors_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activemodel/test/cases/errors_test.rb b/activemodel/test/cases/errors_test.rb
index 51dcfc37d8..7fae688770 100644
--- a/activemodel/test/cases/errors_test.rb
+++ b/activemodel/test/cases/errors_test.rb
@@ -225,6 +225,7 @@ class ErrorsTest < ActiveModel::TestCase
test 'full_message should return the given message with the attribute name included' do
person = Person.new
assert_equal "name can not be blank", person.errors.full_message(:name, "can not be blank")
+ assert_equal "name_test can not be blank", person.errors.full_message(:name_test, "can not be blank")
end
test 'should return a JSON hash representation of the errors' do