Add `:nodoc:` for internal testing methods [ci skip]

This commit is contained in:
Robin Dupret 2015-07-28 12:22:37 +02:00
parent 32b0db266c
commit a74fbb2972
5 changed files with 9 additions and 9 deletions

View File

@ -391,7 +391,7 @@ module ActionDispatch
attr_reader :app
def before_setup
def before_setup # :nodoc:
@app = nil
@integration_session = nil
super

View File

@ -7,7 +7,7 @@ module ActiveJob
extend ActiveSupport::Concern
included do
def before_setup
def before_setup # :nodoc:
test_adapter = ActiveJob::QueueAdapters::TestAdapter.new
@old_queue_adapters = (ActiveJob::Base.subclasses << ActiveJob::Base).select do |klass|
@ -24,7 +24,7 @@ module ActiveJob
super
end
def after_teardown
def after_teardown # :nodoc:
super
@old_queue_adapters.each do |(klass, adapter)|
klass.queue_adapter = adapter

View File

@ -827,12 +827,12 @@ module ActiveRecord
module TestFixtures
extend ActiveSupport::Concern
def before_setup
def before_setup # :nodoc:
setup_fixtures
super
end
def after_teardown
def after_teardown # :nodoc:
super
teardown_fixtures
end

View File

@ -33,7 +33,7 @@ module ActiveSupport
# you can collect them doing @logger.logged(level), where level is the level
# used in logging, like info, debug, warn and so on.
module TestHelper
def setup
def setup # :nodoc:
@logger = MockLogger.new
@notifier = ActiveSupport::Notifications::Fanout.new
@ -44,7 +44,7 @@ module ActiveSupport
ActiveSupport::Notifications.notifier = @notifier
end
def teardown
def teardown # :nodoc:
set_logger(nil)
ActiveSupport::Notifications.notifier = @old_notifier
end

View File

@ -28,14 +28,14 @@ if defined?(ActiveRecord::Base)
end
class ActionController::TestCase
def before_setup
def before_setup # :nodoc:
@routes = Rails.application.routes
super
end
end
class ActionDispatch::IntegrationTest
def before_setup
def before_setup # :nodoc:
@routes = Rails.application.routes
super
end