method
setup
rails latest stable - Class:
ActiveSupport::LogSubscriber::TestHelper
setup()public
No documentation available.
# File activesupport/lib/active_support/log_subscriber/test_helper.rb, line 38
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