diff options
author | Michael Koziarski <michael@koziarski.com> | 2005-10-14 02:07:51 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2005-10-14 02:07:51 +0000 |
commit | 59709d9188b7afff3ee53a4a20b9e40a7699e298 (patch) | |
tree | 2a60478c18cad20cea25586b732a74855a9b76e3 /actionpack/test/template | |
parent | acb80e3d0e96725fffad7caa42cc33281714450a (diff) | |
download | rails-59709d9188b7afff3ee53a4a20b9e40a7699e298.tar.gz rails-59709d9188b7afff3ee53a4a20b9e40a7699e298.tar.bz2 rails-59709d9188b7afff3ee53a4a20b9e40a7699e298.zip |
Ensure radio_button works as expected with values other than strings.
Thanks to:
* grant.mcinnes@utoronto.ca
* rails@jeffcole.net
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2573 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/form_helper_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb index 51141770bd..08b5421c81 100644 --- a/actionpack/test/template/form_helper_test.rb +++ b/actionpack/test/template/form_helper_test.rb @@ -98,6 +98,12 @@ class FormHelperTest < Test::Unit::TestCase ) end + def test_radio_button_is_checked_with_integers + assert_dom_equal('<input checked="checked" id="post_secret_1" name="post[secret]" type="radio" value="1" />', + radio_button("post", "secret", "1") + ) + end + def test_text_area assert_dom_equal( '<textarea cols="40" id="post_body" name="post[body]" rows="20">Back to the hill and over it again!</textarea>', |