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:
Rafael Mendonça França 2016-07-12 03:36:19 -03:00
parent 9d0491937e
commit 9a1ab66744
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948

@ -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