From 24fee97581824e6c8fde166ef15b3a28038a9ab8 Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Fri, 22 Mar 2013 10:00:17 +0530 Subject: Add Error#full_message test; Fix typos Introduce test on Error#full_message for attribute with underscores; Fix some typos --- activemodel/test/cases/errors_test.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activemodel/test') 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 -- cgit v1.2.3