aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-03-22 10:00:17 +0530
committerVipul A M <vipulnsward@gmail.com>2013-03-22 14:53:32 +0530
commit24fee97581824e6c8fde166ef15b3a28038a9ab8 (patch)
treec1fbad7d114671f276d7da336cf91092fb709161 /activemodel
parent0d3cb003de66409e8deccddcf8426822a84b3930 (diff)
downloadrails-24fee97581824e6c8fde166ef15b3a28038a9ab8.tar.gz
rails-24fee97581824e6c8fde166ef15b3a28038a9ab8.tar.bz2
rails-24fee97581824e6c8fde166ef15b3a28038a9ab8.zip
Add Error#full_message test; Fix typos
Introduce test on Error#full_message for attribute with underscores; Fix some typos
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