diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-07-12 03:36:19 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-07-17 05:13:56 -0300 |
commit | 9a1ab6674477642b72cc1760bb7dd69c9a5d6705 (patch) | |
tree | d7d1558d9a4c05b6af118559180addb16ad51794 /actionview | |
parent | 9d0491937e520ac968919f7765b1209912d882a2 (diff) | |
download | rails-9a1ab6674477642b72cc1760bb7dd69c9a5d6705.tar.gz rails-9a1ab6674477642b72cc1760bb7dd69c9a5d6705.tar.bz2 rails-9a1ab6674477642b72cc1760bb7dd69c9a5d6705.zip |
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
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/test/activerecord/controller_runtime_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/test/activerecord/controller_runtime_test.rb b/actionview/test/activerecord/controller_runtime_test.rb index af91348d76..a61181df88 100644 --- a/actionview/test/activerecord/controller_runtime_test.rb +++ b/actionview/test/activerecord/controller_runtime_test.rb @@ -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 |