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
@ -38,8 +38,8 @@ def db_after_render
|
||||
tests LogSubscriberController
|
||||
|
||||
def setup
|
||||
super
|
||||
@old_logger = ActionController::Base.logger
|
||||
super
|
||||
ActionController::LogSubscriber.attach_to :action_controller
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user