From 81d3493c172dc717a86e81a855f4983a3774b846 Mon Sep 17 00:00:00 2001 From: Ben Pickles Date: Thu, 1 Mar 2012 19:07:28 +0000 Subject: Allow fieldsets to be created without a block. --- actionpack/test/template/form_tag_helper_test.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'actionpack/test') 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 = %(
Hello world!
) assert_dom_equal expected, output_buffer + + output_buffer = render_erb("<%= field_set_tag %>") + + expected = %(
) + assert_dom_equal expected, output_buffer + + output_buffer = render_erb("<%= field_set_tag('You legend!') %>") + + expected = %(
You legend!
) + assert_dom_equal expected, output_buffer end def test_text_area_tag_options_symbolize_keys_side_effects -- cgit v1.2.3