Skip to content

Commit 10fb721

Browse files
committed
Privatize unneededly protected methods in Railties tests
1 parent fce62f1 commit 10fb721

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

railties/test/application/loading_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def test_initialize_can_be_called_at_any_time
357357
assert Rails.application.initialized?
358358
end
359359

360-
protected
360+
private
361361

362362
def setup_ar!
363363
ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:")

railties/test/generators/actions_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def test_log_with_status_with_quiet
369369
assert_equal("", action(:log, :yes, "YES"))
370370
end
371371

372-
protected
372+
private
373373

374374
def action(*args, &block)
375375
capture(:stdout) { generator.send(*args, &block) }

railties/test/generators/app_generator_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ def test_after_bundle_callback
788788
assert_equal 3, @sequence_step
789789
end
790790

791-
protected
791+
private
792792

793793
def stub_rails_application(root)
794794
Rails.application.config.root = root

railties/test/generators/named_base_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def test_scaffold_plural_names_with_model_name_option
131131
assert_name g, "admin.foos", :controller_i18n_scope
132132
end
133133

134-
protected
134+
private
135135

136136
def assert_name(generator, value, method)
137137
assert_equal value, generator.send(method)

railties/test/generators/plugin_generator_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ def test_generate_application_job_when_does_not_exist_in_mountable_engine
714714
end
715715
end
716716

717-
protected
717+
private
718718

719719
def action(*args, &block)
720720
silence(:stdout) { generator.send(*args, &block) }

railties/test/rails_info_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def test_html_includes_middleware
5454
end
5555
end
5656

57-
protected
57+
private
5858
def properties
5959
Rails::Info.properties
6060
end

0 commit comments

Comments
 (0)