diff options
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/form_helper_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb index 8f3d5ebb94..d81e2ac270 100644 --- a/actionpack/test/template/form_helper_test.rb +++ b/actionpack/test/template/form_helper_test.rb @@ -1,4 +1,5 @@ require 'test/unit' +require 'erb' require File.dirname(__FILE__) + '/../../lib/action_view/helpers/form_helper' class FormHelperTest < Test::Unit::TestCase @@ -70,6 +71,15 @@ class FormHelperTest < Test::Unit::TestCase check_box("post", "secret") ) end + + def test_radio_button + assert_equal('<input checked="checked" id="post_title" name="post[title]" size="30" type="radio" value="Hello World" />', + radio_button("post", "title", "Hello World") + ) + assert_equal('<input id="post_title" name="post[title]" size="30" type="radio" value="Goodbye World" />', + radio_button("post", "title", "Goodbye World") + ) + end def test_text_area assert_equal( |