notifier should be saved and re-set, not deleted

This commit is contained in:
Aaron Patterson 2011-02-07 13:45:43 -08:00
parent 933adce8f4
commit 60da34b4be

@ -38,13 +38,14 @@ def setup
ActiveSupport::LogSubscriber.colorize_logging = false
@old_notifier = ActiveSupport::Notifications.notifier
set_logger(@logger)
ActiveSupport::Notifications.notifier = @notifier
end
def teardown
set_logger(nil)
ActiveSupport::Notifications.notifier = nil
ActiveSupport::Notifications.notifier = @old_notifier
end
class MockLogger