1
0
Fork 0
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:
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

View file

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