From 31fb0deec16d1911a9c7892089e4d695f90a6425 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Sun, 7 Jan 2007 08:56:57 +0000 Subject: Fix no method error with error_messages_on. Closes #6935 [nik.wakelin Koz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5870 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/template/active_record_helper_test.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'actionpack/test') diff --git a/actionpack/test/template/active_record_helper_test.rb b/actionpack/test/template/active_record_helper_test.rb index c4e5ca66c2..91f744ff83 100644 --- a/actionpack/test/template/active_record_helper_test.rb +++ b/actionpack/test/template/active_record_helper_test.rb @@ -174,7 +174,11 @@ class ActiveRecordHelperTest < Test::Unit::TestCase def test_error_message_on_handles_nil assert_equal "", error_message_on("notthere", "notthere") end - + + def test_error_message_on + assert error_message_on(:post, :author_name) + end + def test_error_messages_for_many_objects assert_dom_equal %(

2 errors prohibited this post from being saved

There were problems with the following fields:

), error_messages_for("post", "user") -- cgit v1.2.3