diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-06-23 16:58:31 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-06-23 16:58:31 +0000 |
commit | 62a9203a5ed43fb3aea742b887a3bc874352950a (patch) | |
tree | f523c6594178ed803a092d51637cfa0e8425e3b8 /actionpack/test | |
parent | 46b0e7d1d77c77d013235e3bf99d1afb89513cc9 (diff) | |
download | rails-62a9203a5ed43fb3aea742b887a3bc874352950a.tar.gz rails-62a9203a5ed43fb3aea742b887a3bc874352950a.tar.bz2 rails-62a9203a5ed43fb3aea742b887a3bc874352950a.zip |
Fixed that radio_button_tag should generate unique ids (closes #3353) [BobSilva/rebecca/josh]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7093 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/form_tag_helper_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/test/template/form_tag_helper_test.rb b/actionpack/test/template/form_tag_helper_test.rb index cb78a59516..5e89cbbd54 100644 --- a/actionpack/test/template/form_tag_helper_test.rb +++ b/actionpack/test/template/form_tag_helper_test.rb @@ -93,6 +93,9 @@ class FormTagHelperTest < Test::Unit::TestCase expected = %(<input id="opinion_-1" name="opinion" type="radio" value="-1" /><input id="opinion_1" name="opinion" type="radio" value="1" />) assert_dom_equal expected, actual + actual = radio_button_tag("person[gender]", "m") + expected = %(<input id="person_gender_m" name="person[gender]" type="radio" value="m" />) + assert_dom_equal expected, actual end def test_select_tag |