diff options
author | Prem Sichanugrist <s@sikachu.com> | 2010-01-27 11:33:25 +0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-02-02 10:17:26 +0100 |
commit | c01014ac1c98a05fe68e652f978dfa9d43f0fc2b (patch) | |
tree | c51a4852efa2f150cb39decd98ae17f20fdb5251 /actionpack/test | |
parent | ea2cbc86f7d73a4884a16530454908cff765c0dc (diff) | |
download | rails-c01014ac1c98a05fe68e652f978dfa9d43f0fc2b.tar.gz rails-c01014ac1c98a05fe68e652f978dfa9d43f0fc2b.tar.bz2 rails-c01014ac1c98a05fe68e652f978dfa9d43f0fc2b.zip |
Modify the behavior of `radio_button_tag` to use `sanitize_to_id` for consistency [#1792 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/form_tag_helper_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/template/form_tag_helper_test.rb b/actionpack/test/template/form_tag_helper_test.rb index 3635c7548e..6ac5df1ea9 100644 --- a/actionpack/test/template/form_tag_helper_test.rb +++ b/actionpack/test/template/form_tag_helper_test.rb @@ -120,6 +120,10 @@ class FormTagHelperTest < ActionView::TestCase 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 + + actual = radio_button_tag('ctrlname', 'apache2.2') + expected = %(<input id="ctrlname_apache2.2" name="ctrlname" type="radio" value="apache2.2" />) + assert_dom_equal expected, actual end def test_select_tag |