diff options
author | Paco Guzman <fjguzman@aspgems.com> | 2010-03-27 16:16:57 +0100 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-03-28 17:27:10 -0700 |
commit | 878a9e02f662516d0d70c44beb1a3f4297342896 (patch) | |
tree | 0c02daef64f752bad749d03c253376178e56e77c /actionpack/test/template/active_model_helper_test.rb | |
parent | 26bc5c542e41037fcdcf7b831d9cbbbe3bf8c96a (diff) | |
download | rails-878a9e02f662516d0d70c44beb1a3f4297342896.tar.gz rails-878a9e02f662516d0d70c44beb1a3f4297342896.tar.bz2 rails-878a9e02f662516d0d70c44beb1a3f4297342896.zip |
html_tag option to wrap error_message_on text [#4283 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
Diffstat (limited to 'actionpack/test/template/active_model_helper_test.rb')
-rw-r--r-- | actionpack/test/template/active_model_helper_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/template/active_model_helper_test.rb b/actionpack/test/template/active_model_helper_test.rb index 7a665b00bc..1a5316a689 100644 --- a/actionpack/test/template/active_model_helper_test.rb +++ b/actionpack/test/template/active_model_helper_test.rb @@ -266,6 +266,10 @@ class ActiveModelHelperTest < ActionView::TestCase assert_dom_equal "<div class=\"differentError\">beforecan't be emptyafter</div>", error_message_on(:post, :author_name, :css_class => 'differentError', :prepend_text => 'before', :append_text => 'after') end + def test_error_message_on_with_tag_option_in_options_hash + assert_dom_equal "<span class=\"differentError\">beforecan't be emptyafter</span>", error_message_on(:post, :author_name, :html_tag => "span", :css_class => 'differentError', :prepend_text => 'before', :append_text => 'after') + end + def test_error_message_on_handles_empty_errors assert_equal "", error_message_on(@post, :tag) end |