diff options
author | Guo Xiang Tan <tgx_world@hotmail.com> | 2014-07-11 16:38:26 +0800 |
---|---|---|
committer | Guo Xiang Tan <tgx_world@hotmail.com> | 2014-07-11 16:38:26 +0800 |
commit | d9396a07ebe69b211365f14b8e2c7c10e75fb61c (patch) | |
tree | e2b0e0da91a74e33d38f2be8f3b434fb386390dd /railties/test | |
parent | e22e1c0b282f86901500da8bdb70c9d711e16066 (diff) | |
download | rails-d9396a07ebe69b211365f14b8e2c7c10e75fb61c.tar.gz rails-d9396a07ebe69b211365f14b8e2c7c10e75fb61c.tar.bz2 rails-d9396a07ebe69b211365f14b8e2c7c10e75fb61c.zip |
Fix incorrect unsubscription.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/rack_logger_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/rack_logger_test.rb b/railties/test/rack_logger_test.rb index 6ebd47fff9..fcc79b57fb 100644 --- a/railties/test/rack_logger_test.rb +++ b/railties/test/rack_logger_test.rb @@ -39,11 +39,11 @@ module Rails def setup @subscriber = Subscriber.new @notifier = ActiveSupport::Notifications.notifier - notifier.subscribe 'request.action_dispatch', subscriber + @subscription = notifier.subscribe 'request.action_dispatch', subscriber end def teardown - notifier.unsubscribe subscriber + notifier.unsubscribe @subscription end def test_notification |