mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Privatize unneededly protected methods in Action View tests
This commit is contained in:
parent
21e5fd4a2a
commit
1f5bed9855
5 changed files with 5 additions and 5 deletions
|
@ -163,7 +163,7 @@ class ActionDispatch::IntegrationTest < ActiveSupport::TestCase
|
|||
# Stub Rails dispatcher so it does not get controller references and
|
||||
# simply return the controller#action as Rack::Body.
|
||||
class StubDispatcher < ::ActionDispatch::Routing::RouteSet::Dispatcher
|
||||
protected
|
||||
private
|
||||
def controller_reference(controller_param)
|
||||
controller_param
|
||||
end
|
||||
|
|
|
@ -52,7 +52,7 @@ class FormHelperActiveRecordTest < ActionView::TestCase
|
|||
assert_dom_equal expected, output_buffer
|
||||
end
|
||||
|
||||
protected
|
||||
private
|
||||
|
||||
def hidden_fields(method = nil)
|
||||
txt = %{<input name="utf8" type="hidden" value="✓" />}
|
||||
|
|
|
@ -2184,7 +2184,7 @@ class FormWithActsLikeFormForTest < FormWithTest
|
|||
assert_equal 1, initialization_count, "form builder instantiated more than once"
|
||||
end
|
||||
|
||||
protected
|
||||
private
|
||||
def hidden_fields(options = {})
|
||||
method = options[:method]
|
||||
|
||||
|
|
|
@ -3439,7 +3439,7 @@ class FormHelperTest < ActionView::TestCase
|
|||
assert_equal 1, initialization_count, "form builder instantiated more than once"
|
||||
end
|
||||
|
||||
protected
|
||||
private
|
||||
|
||||
def hidden_fields(options = {})
|
||||
method = options[:method]
|
||||
|
|
|
@ -810,7 +810,7 @@ class TasksController < ActionController::Base
|
|||
render_default
|
||||
end
|
||||
|
||||
protected
|
||||
private
|
||||
def render_default
|
||||
render inline: "<%= link_to_unless_current('tasks', tasks_path) %>\n" +
|
||||
"<%= link_to_unless_current('tasks', tasks_url) %>"
|
||||
|
|
Loading…
Reference in a new issue