diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb
index 3546bd3bee..99b46e0990 100644
--- a/actionpack/test/template/form_helper_test.rb
+++ b/actionpack/test/template/form_helper_test.rb
@@ -1999,37 +1999,6 @@ class FormHelperTest < ActionView::TestCase
assert_dom_equal expected, output_buffer
end
- def hidden_fields(method = nil)
- txt = %{
}
- txt << %{}
- if method && !method.to_s.in?(['get', 'post'])
- txt << %{}
- end
- txt << %{
}
- end
-
- def form_text(action = "/", id = nil, html_class = nil, remote = nil, multipart = nil, method = nil)
- txt = %{"
- end
-
def test_default_form_builder
old_default_form_builder, ActionView::Base.default_form_builder =
ActionView::Base.default_form_builder, LabelledFormBuilder
@@ -2213,6 +2182,37 @@ class FormHelperTest < ActionView::TestCase
protected
+ def hidden_fields(method = nil)
+ txt = %{}
+ txt << %{}
+ if method && !method.to_s.in?(['get', 'post'])
+ txt << %{}
+ end
+ txt << %{
}
+ end
+
+ def form_text(action = "/", id = nil, html_class = nil, remote = nil, multipart = nil, method = nil)
+ txt = %{"
+ end
+
def protect_against_forgery?
false
end