diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-04-29 12:32:08 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-04-29 12:32:08 -0300 |
commit | a782aa5a5c30ac471c97a99d12767b4bc2cd8d9d (patch) | |
tree | 6652925aeaa799b1eedcd10dbb38c988e949da52 /actionpack/test | |
parent | d6bbd337ef1b96ed246bccaaf6e8b15a7077b9aa (diff) | |
download | rails-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/test')
-rw-r--r-- | actionpack/test/template/form_helper_test.rb | 4 |
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 |