aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-01-29 20:42:46 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-01-29 20:42:46 +0000
commit6b5238aadeb778a7067f93376a6a57a8eeda8379 (patch)
tree47a9f5560403ee8df71091ab2066797784c1a502 /actionpack/test/template
parent09c708981ce058fe9b1cbead4fac9fbb58de6a97 (diff)
downloadrails-6b5238aadeb778a7067f93376a6a57a8eeda8379.tar.gz
rails-6b5238aadeb778a7067f93376a6a57a8eeda8379.tar.bz2
rails-6b5238aadeb778a7067f93376a6a57a8eeda8379.zip
Added FormBuilder#submit as a delegate for FormTagHelper#submit_tag [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6089 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r--actionpack/test/template/form_helper_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb
index df9295e8b7..88dc8aa1cd 100644
--- a/actionpack/test/template/form_helper_test.rb
+++ b/actionpack/test/template/form_helper_test.rb
@@ -239,6 +239,7 @@ class FormHelperTest < Test::Unit::TestCase
_erbout.concat f.text_field(:title)
_erbout.concat f.text_area(:body)
_erbout.concat f.check_box(:secret)
+ _erbout.concat f.submit 'Create post'
end
expected =
@@ -247,6 +248,7 @@ class FormHelperTest < Test::Unit::TestCase
"<textarea name='post[body]' id='post_body' rows='20' cols='40'>Back to the hill and over it again!</textarea>" +
"<input name='post[secret]' checked='checked' type='checkbox' id='post_secret' value='1' />" +
"<input name='post[secret]' type='hidden' value='0' />" +
+ "<input name='commit' id='post_submit' type='submit' value='Create post' />" +
"</form>"
assert_dom_equal expected, _erbout