module ActiveSupport::LogSubscriber::TestHelper

def setup # :nodoc:

:nodoc:
def setup # :nodoc:
  @logger   = MockLogger.new
  @notifier = ActiveSupport::Notifications::Fanout.new
  ActiveSupport::LogSubscriber.colorize_logging = false
  @old_notifier = ActiveSupport::Notifications.notifier
  set_logger(@logger)
  ActiveSupport::Notifications.notifier = @notifier
end