diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-15 12:15:49 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-15 12:24:31 +0100 |
commit | 6487d2871cbd44d769c483f47130e18d53e6e381 (patch) | |
tree | 34984f58948bff46a188ea82b5dc799c3b8f1ab0 /railties/test | |
parent | 88dd60298ef393e2406ab543a1124a4304a19f61 (diff) | |
download | rails-6487d2871cbd44d769c483f47130e18d53e6e381.tar.gz rails-6487d2871cbd44d769c483f47130e18d53e6e381.tar.bz2 rails-6487d2871cbd44d769c483f47130e18d53e6e381.zip |
Fix an issue where log was not being tailed in the first request.
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 |