提交 1f5bed98 编写于 作者: A Akira Matsuda

Privatize unneededly protected methods in Action View tests

上级 21e5fd4a
...@@ -163,7 +163,7 @@ def self.build_app(routes = nil) ...@@ -163,7 +163,7 @@ def self.build_app(routes = nil)
# Stub Rails dispatcher so it does not get controller references and # Stub Rails dispatcher so it does not get controller references and
# simply return the controller#action as Rack::Body. # simply return the controller#action as Rack::Body.
class StubDispatcher < ::ActionDispatch::Routing::RouteSet::Dispatcher class StubDispatcher < ::ActionDispatch::Routing::RouteSet::Dispatcher
protected private
def controller_reference(controller_param) def controller_reference(controller_param)
controller_param controller_param
end end
......
...@@ -52,7 +52,7 @@ def test_nested_fields_for_with_child_index_option_override_on_a_nested_attribut ...@@ -52,7 +52,7 @@ def test_nested_fields_for_with_child_index_option_override_on_a_nested_attribut
assert_dom_equal expected, output_buffer assert_dom_equal expected, output_buffer
end end
protected private
def hidden_fields(method = nil) def hidden_fields(method = nil)
txt = %{<input name="utf8" type="hidden" value="&#x2713;" />} txt = %{<input name="utf8" type="hidden" value="&#x2713;" />}
......
...@@ -2184,7 +2184,7 @@ def test_form_with_only_instantiates_builder_once ...@@ -2184,7 +2184,7 @@ def test_form_with_only_instantiates_builder_once
assert_equal 1, initialization_count, "form builder instantiated more than once" assert_equal 1, initialization_count, "form builder instantiated more than once"
end end
protected private
def hidden_fields(options = {}) def hidden_fields(options = {})
method = options[:method] method = options[:method]
......
...@@ -3439,7 +3439,7 @@ def test_form_for_only_instantiates_builder_once ...@@ -3439,7 +3439,7 @@ def test_form_for_only_instantiates_builder_once
assert_equal 1, initialization_count, "form builder instantiated more than once" assert_equal 1, initialization_count, "form builder instantiated more than once"
end end
protected private
def hidden_fields(options = {}) def hidden_fields(options = {})
method = options[:method] method = options[:method]
......
...@@ -810,7 +810,7 @@ def show ...@@ -810,7 +810,7 @@ def show
render_default render_default
end end
protected private
def render_default def render_default
render inline: "<%= link_to_unless_current('tasks', tasks_path) %>\n" + render inline: "<%= link_to_unless_current('tasks', tasks_path) %>\n" +
"<%= link_to_unless_current('tasks', tasks_url) %>" "<%= link_to_unless_current('tasks', tasks_url) %>"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册