mirror of https://github.com/rails/rails
Privatize unneededly protected methods in Railties tests
This commit is contained in:
parent
fce62f1f83
commit
10fb7211bb
|
@ -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:")
|
||||
|
|
|
@ -369,7 +369,7 @@ F
|
|||
assert_equal("", action(:log, :yes, "YES"))
|
||||
end
|
||||
|
||||
protected
|
||||
private
|
||||
|
||||
def action(*args, &block)
|
||||
capture(:stdout) { generator.send(*args, &block) }
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -714,7 +714,7 @@ class PluginGeneratorTest < Rails::Generators::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
protected
|
||||
private
|
||||
|
||||
def action(*args, &block)
|
||||
silence(:stdout) { generator.send(*args, &block) }
|
||||
|
|
|
@ -54,7 +54,7 @@ class InfoTest < ActiveSupport::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
protected
|
||||
private
|
||||
def properties
|
||||
Rails::Info.properties
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue