From a782aa5a5c30ac471c97a99d12767b4bc2cd8d9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Sun, 29 Apr 2012 12:32:08 -0300 Subject: Fix the build. * The method for persisted records in 3-2-branch is 'PUT' * size is generated by default in inputs --- actionpack/test/template/form_helper_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack') 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 - "
" + expected = whole_form('/posts/123', 'edit_post_123', 'edit_post', :method => 'put') do + "
" end assert_dom_equal expected, output_buffer -- cgit v1.2.3 From b18603b8902378662db33bdc3cca7550fcd8c4d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Sun, 29 Apr 2012 12:33:15 -0300 Subject: Remove warning of unused variable --- actionpack/test/template/record_tag_helper_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack') diff --git a/actionpack/test/template/record_tag_helper_test.rb b/actionpack/test/template/record_tag_helper_test.rb index b4db6d9a71..f33471ab28 100644 --- a/actionpack/test/template/record_tag_helper_test.rb +++ b/actionpack/test/template/record_tag_helper_test.rb @@ -103,7 +103,7 @@ class RecordTagHelperTest < ActionView::TestCase def test_content_tag_for_does_not_change_options_hash options = { :class => "important" } - result = content_tag_for(:li, @post, options) { } + content_tag_for(:li, @post, options) { } assert_equal({ :class => "important" }, options) end end -- cgit v1.2.3