mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Store the old logger before calling super
setup in ActiveSupport::LogSubscriber::TestHelper call set_logger that will change ActionController::Base.logger to the MockLogger so that logger will be always MockLogger
This commit is contained in:
parent
9d0491937e
commit
9a1ab66744
1 changed files with 1 additions and 1 deletions
|
@ -38,8 +38,8 @@ class ControllerRuntimeLogSubscriberTest < ActionController::TestCase
|
|||
tests LogSubscriberController
|
||||
|
||||
def setup
|
||||
super
|
||||
@old_logger = ActionController::Base.logger
|
||||
super
|
||||
ActionController::LogSubscriber.attach_to :action_controller
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue