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