diff options
author | Ben Pickles <spideryoung@gmail.com> | 2012-03-01 19:07:28 +0000 |
---|---|---|
committer | Ben Pickles <spideryoung@gmail.com> | 2012-03-01 19:51:56 +0000 |
commit | 81d3493c172dc717a86e81a855f4983a3774b846 (patch) | |
tree | 7f2e3e12f6ef5284ae40350330ab237ac9719e21 /actionpack/test | |
parent | 447d87c206ff70046b15be99e73ec79690687bb9 (diff) | |
download | rails-81d3493c172dc717a86e81a855f4983a3774b846.tar.gz rails-81d3493c172dc717a86e81a855f4983a3774b846.tar.bz2 rails-81d3493c172dc717a86e81a855f4983a3774b846.zip |
Allow fieldsets to be created without a block.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/form_tag_helper_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/actionpack/test/template/form_tag_helper_test.rb b/actionpack/test/template/form_tag_helper_test.rb index 6ef4cf4dd2..590a1967c5 100644 --- a/actionpack/test/template/form_tag_helper_test.rb +++ b/actionpack/test/template/form_tag_helper_test.rb @@ -513,6 +513,16 @@ class FormTagHelperTest < ActionView::TestCase expected = %(<fieldset class="format">Hello world!</fieldset>) assert_dom_equal expected, output_buffer + + output_buffer = render_erb("<%= field_set_tag %>") + + expected = %(<fieldset></fieldset>) + assert_dom_equal expected, output_buffer + + output_buffer = render_erb("<%= field_set_tag('You legend!') %>") + + expected = %(<fieldset><legend>You legend!</legend></fieldset>) + assert_dom_equal expected, output_buffer end def test_text_area_tag_options_symbolize_keys_side_effects |