aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-04-29 12:32:08 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-04-29 12:32:08 -0300
commita782aa5a5c30ac471c97a99d12767b4bc2cd8d9d (patch)
tree6652925aeaa799b1eedcd10dbb38c988e949da52 /actionpack
parentd6bbd337ef1b96ed246bccaaf6e8b15a7077b9aa (diff)
downloadrails-a782aa5a5c30ac471c97a99d12767b4bc2cd8d9d.tar.gz
rails-a782aa5a5c30ac471c97a99d12767b4bc2cd8d9d.tar.bz2
rails-a782aa5a5c30ac471c97a99d12767b4bc2cd8d9d.zip
Fix the build.
* The method for persisted records in 3-2-branch is 'PUT' * size is generated by default in inputs
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/template/form_helper_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb
index 3f459bad2e..19af01e2c8 100644
--- a/actionpack/test/template/form_helper_test.rb
+++ b/actionpack/test/template/form_helper_test.rb
@@ -2041,8 +2041,8 @@ class FormHelperTest < ActionView::TestCase
concat f.text_field(:title)
end
- expected = whole_form('/posts/123', 'edit_post_123', 'edit_post', :method => 'patch') do
- "<label for='title'>Title:</label> <input name='post[title]' type='text' id='post_title' value='Hello World' /><br/>"
+ expected = whole_form('/posts/123', 'edit_post_123', 'edit_post', :method => 'put') do
+ "<label for='title'>Title:</label> <input name='post[title]' size='30' type='text' id='post_title' value='Hello World' /><br/>"
end
assert_dom_equal expected, output_buffer