Skip to content
Browse files

Fix the build.

* The method for persisted records in 3-2-branch is 'PUT'
* size is generated by default in inputs
  • Loading branch information...
1 parent d6bbd33 commit a782aa5a5c30ac471c97a99d12767b4bc2cd8d9d @rafaelfranca rafaelfranca committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/template/form_helper_test.rb
View
4 actionpack/test/template/form_helper_test.rb
@@ -2041,8 +2041,8 @@ def test_lazy_loading_default_form_builder
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

0 comments on commit a782aa5

Please sign in to comment.
Something went wrong with that request. Please try again.