diff --git a/actionview/test/abstract_unit.rb b/actionview/test/abstract_unit.rb index 88c7189d228958b301c06a87e91fc17153b4f8a4..5bc415108764578b9eda0e39d909d707ec8bf3c1 100644 --- a/actionview/test/abstract_unit.rb +++ b/actionview/test/abstract_unit.rb @@ -163,7 +163,7 @@ def self.build_app(routes = nil) # 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 diff --git a/actionview/test/activerecord/form_helper_activerecord_test.rb b/actionview/test/activerecord/form_helper_activerecord_test.rb index 6152ec4720d36e634145845e80a1950a1b82904a..0f7960b40847cc6f74e1638146dc89254589b8de 100644 --- a/actionview/test/activerecord/form_helper_activerecord_test.rb +++ b/actionview/test/activerecord/form_helper_activerecord_test.rb @@ -52,7 +52,7 @@ def test_nested_fields_for_with_child_index_option_override_on_a_nested_attribut assert_dom_equal expected, output_buffer end - protected + private def hidden_fields(method = nil) txt = %{} diff --git a/actionview/test/template/form_helper/form_with_test.rb b/actionview/test/template/form_helper/form_with_test.rb index 3d93e89bcb5a38a389b932d3eefc35e7bb43d4c9..08c685b00f844d6137b08709019a6efc97cf297f 100644 --- a/actionview/test/template/form_helper/form_with_test.rb +++ b/actionview/test/template/form_helper/form_with_test.rb @@ -2184,7 +2184,7 @@ def test_form_with_only_instantiates_builder_once assert_equal 1, initialization_count, "form builder instantiated more than once" end - protected + private def hidden_fields(options = {}) method = options[:method] diff --git a/actionview/test/template/form_helper_test.rb b/actionview/test/template/form_helper_test.rb index 4c7134abacc59a97a8269abdbeea01a004a69373..4850bc390bebad3b5c6030bea07a38946505aadb 100644 --- a/actionview/test/template/form_helper_test.rb +++ b/actionview/test/template/form_helper_test.rb @@ -3439,7 +3439,7 @@ def test_form_for_only_instantiates_builder_once assert_equal 1, initialization_count, "form builder instantiated more than once" end - protected + private def hidden_fields(options = {}) method = options[:method] diff --git a/actionview/test/template/url_helper_test.rb b/actionview/test/template/url_helper_test.rb index 5a2319fe96156894f0fa7d2c37581dd767bde19d..1e64385b524a54bef0c47cee98c15b191b41f88e 100644 --- a/actionview/test/template/url_helper_test.rb +++ b/actionview/test/template/url_helper_test.rb @@ -810,7 +810,7 @@ def show 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) %>"