diff options
author | Andrew Kaspick <andrew@redlinesoftware.com> | 2008-09-25 21:44:34 -0500 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-09-29 17:47:29 +0200 |
commit | 8c105ee0c888a63cdbf593f0bfe688065b3e09e2 (patch) | |
tree | 77cd68de0493f04fc746f1737c7b10bd79a26c3f /actionpack/test | |
parent | 28bf2fa03886e3ea7d873375239395b91b8e530e (diff) | |
download | rails-8c105ee0c888a63cdbf593f0bfe688065b3e09e2.tar.gz rails-8c105ee0c888a63cdbf593f0bfe688065b3e09e2.tar.bz2 rails-8c105ee0c888a63cdbf593f0bfe688065b3e09e2.zip |
Add options to field_set_tag
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1116 state:committed]
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/form_tag_helper_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/template/form_tag_helper_test.rb b/actionpack/test/template/form_tag_helper_test.rb index 6473d011d5..ad8baef5e4 100644 --- a/actionpack/test/template/form_tag_helper_test.rb +++ b/actionpack/test/template/form_tag_helper_test.rb @@ -271,6 +271,12 @@ class FormTagHelperTest < ActionView::TestCase expected = %(<fieldset>Hello world!</fieldset>) assert_dom_equal expected, output_buffer + + self.output_buffer = '' + field_set_tag('', :class => 'format') { concat "Hello world!" } + + expected = %(<fieldset class="format">Hello world!</fieldset>) + assert_dom_equal expected, output_buffer end def protect_against_forgery? |