diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2014-07-11 08:14:55 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2014-07-11 08:14:55 -0300 |
commit | 6e23c8242d9364e295ace14b3b01ae33fe31989b (patch) | |
tree | ff2602038ddaeccdf65f7de78656b0823c251e89 /railties | |
parent | d294ef02635c263aabddd07d002467fdb1098446 (diff) | |
parent | d9396a07ebe69b211365f14b8e2c7c10e75fb61c (diff) | |
download | rails-6e23c8242d9364e295ace14b3b01ae33fe31989b.tar.gz rails-6e23c8242d9364e295ace14b3b01ae33fe31989b.tar.bz2 rails-6e23c8242d9364e295ace14b3b01ae33fe31989b.zip |
Merge pull request #16132 from tgxworld/fix_test_not_unsubscribing
Fix incorrect unsubscription.
Diffstat (limited to 'railties')
-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 |