diff options
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/subscriber_test.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/railties/test/subscriber_test.rb b/railties/test/subscriber_test.rb index c45a68602d..ac34939510 100644 --- a/railties/test/subscriber_test.rb +++ b/railties/test/subscriber_test.rb @@ -108,14 +108,13 @@ module SubscriberTest def test_tails_logs_when_action_dispatch_callback_is_received log_tailer = mock() log_tailer.expects(:tail!) - Rails::Rack::LogTailer.expects(:new).with(nil, "log/development.log").returns(log_tailer) + Rails::Subscriber.log_tailer = log_tailer - Rails::Subscriber.tail_log = true Rails::Subscriber.add :my_subscriber, @subscriber instrument "action_dispatch.callback" wait ensure - Rails::Subscriber.tail_log = false + Rails::Subscriber.log_tailer = nil end class SyncSubscriberTest < ActiveSupport::TestCase |