From c80f974fa3071104397d8dd5752ff60bca1881fe Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 14 Dec 2004 13:48:27 +0000 Subject: Added FormHelper#radio_button to work with radio buttons like its already possible with check boxes [Michael Koziarski] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@151 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/template/form_helper_test.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'actionpack/test/template') 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('', + radio_button("post", "title", "Hello World") + ) + assert_equal('', + radio_button("post", "title", "Goodbye World") + ) + end def test_text_area assert_equal( -- cgit v1.2.3