notifier should be saved and re-set, not deleted
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user