Privatize unneededly protected methods in Railties tests

This commit is contained in:
Akira Matsuda 2016-12-23 23:45:39 +09:00
parent fce62f1f83
commit 10fb7211bb
6 changed files with 6 additions and 6 deletions

View File

@ -357,7 +357,7 @@ class LoadingTest < ActiveSupport::TestCase
assert Rails.application.initialized?
end
protected
private
def setup_ar!
ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:")

View File

@ -369,7 +369,7 @@ F
assert_equal("", action(:log, :yes, "YES"))
end
protected
private
def action(*args, &block)
capture(:stdout) { generator.send(*args, &block) }

View File

@ -788,7 +788,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
assert_equal 3, @sequence_step
end
protected
private
def stub_rails_application(root)
Rails.application.config.root = root

View File

@ -131,7 +131,7 @@ class NamedBaseTest < Rails::Generators::TestCase
assert_name g, "admin.foos", :controller_i18n_scope
end
protected
private
def assert_name(generator, value, method)
assert_equal value, generator.send(method)

View File

@ -714,7 +714,7 @@ class PluginGeneratorTest < Rails::Generators::TestCase
end
end
protected
private
def action(*args, &block)
silence(:stdout) { generator.send(*args, &block) }

View File

@ -54,7 +54,7 @@ class InfoTest < ActiveSupport::TestCase
end
end
protected
private
def properties
Rails::Info.properties
end