aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-02-19 13:09:09 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-02-19 13:09:09 +0000
commitad1fe7dd277e4e82bd8588e06c1181b6f8402683 (patch)
tree556a21fdcc4099bcc65314092f55098d1670de67 /actionpack/test
parent967339e4d324daa659e5f625d48a56dc17d5287e (diff)
downloadrails-ad1fe7dd277e4e82bd8588e06c1181b6f8402683.tar.gz
rails-ad1fe7dd277e4e82bd8588e06c1181b6f8402683.tar.bz2
rails-ad1fe7dd277e4e82bd8588e06c1181b6f8402683.zip
Completed FormTagHelper by adding radio_button_tag and select_tag
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@688 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/template/form_tag_helper_test.rb3
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 5806c879fd..25da1937d4 100644
--- a/actionpack/test/template/form_tag_helper_test.rb
+++ b/actionpack/test/template/form_tag_helper_test.rb
@@ -8,9 +8,12 @@ class TagHelperTest < Test::Unit::TestCase
MethodToTag = {
%(text_field_tag("title", "Hello!")) => %(<input id="title" name="title" type="text" value="Hello!" />),
%(text_field_tag("title", "Hello!", "class" => "admin")) => %(<input class="admin" id="title" name="title" type="text" value="Hello!" />),
+ %(hidden_field_tag "id", 3) => %(<input id="id" name="id" type="hidden" value="3" />),
%(password_field_tag) => %(<input id="password" name="password" type="password" value="" />),
%(text_area_tag("body", "hello world", :size => "20x40")) => %(<textarea cols="20" id="body" name="body" rows="40">hello world</textarea>),
%(check_box_tag("admin")) => %(<input id="admin" name="admin" type="checkbox" value="1" />),
+ %(radio_button_tag("people", "david")) => %(<input id="people" name="people" type="radio" value="david" />),
+ %(select_tag("people", "<option>david</option>")) => %(<select id="people" name="people"><option>david</option></select>),
}
def test_tags