diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-03-24 21:32:50 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-03-24 21:32:50 +0000 |
commit | b0bfcca16efff329e0cfaebc18a7debed126473b (patch) | |
tree | a0926c4f73c773214ab21e87ceb310e919b76b89 /actionpack/test/template/form_helper_test.rb | |
parent | 123f5a357dc176225d57dc78e773338642048120 (diff) | |
download | rails-b0bfcca16efff329e0cfaebc18a7debed126473b.tar.gz rails-b0bfcca16efff329e0cfaebc18a7debed126473b.tar.bz2 rails-b0bfcca16efff329e0cfaebc18a7debed126473b.zip |
Fixed that FormHelper#radio_button would produce invalid ids (closes #11298) [harlancrystal]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9088 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template/form_helper_test.rb')
-rw-r--r-- | actionpack/test/template/form_helper_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb index b788a9e2f9..766e88375b 100644 --- a/actionpack/test/template/form_helper_test.rb +++ b/actionpack/test/template/form_helper_test.rb @@ -187,6 +187,9 @@ class FormHelperTest < Test::Unit::TestCase assert_dom_equal('<input id="post_title_goodbye_world" name="post[title]" type="radio" value="Goodbye World" />', radio_button("post", "title", "Goodbye World") ) + assert_dom_equal('<input id="item_subobject_title_inside_world" name="item[subobject][title]" type="radio" value="inside world"/>', + radio_button("item[subobject]", "title", "inside world") + ) end def test_radio_button_is_checked_with_integers |