mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add :nodoc:
for internal testing methods [ci skip]
This commit is contained in:
parent
32b0db266c
commit
a74fbb2972
5 changed files with 9 additions and 9 deletions
|
@ -391,7 +391,7 @@ module ActionDispatch
|
|||
|
||||
attr_reader :app
|
||||
|
||||
def before_setup
|
||||
def before_setup # :nodoc:
|
||||
@app = nil
|
||||
@integration_session = nil
|
||||
super
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue