Module: ActiveSupport::Testing::TaggedLogging
Do not use. This module is for internal use only.
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
|
Included In:
::ActionCable::Channel::TestCase,
::ActionCable::Connection::TestCase,
::ActionCable::TestCase,
::ActionController::TestCase,
::ActionDispatch::IntegrationTest,
::ActionDispatch::SystemTestCase,
::ActionMailbox::TestCase,
::ActionMailer::TestCase,
::ActionView::TestCase,
::ActiveJob::TestCase,
::ActiveSupport::TestCase,
::Rails::Generators::TestCase
| |
| Defined in: | activesupport/lib/active_support/testing/tagged_logging.rb |
Overview
Logs a “PostsControllerTest: test name” heading before each test to make test.log easier to search and follow along with.
Instance Attribute Summary
- #tagged_logger=(value) rw
- #tagged_logger rw private
Instance Method Summary
Instance Attribute Details
#tagged_logger (rw, private)
[ GitHub ]#tagged_logger=(value) (rw)
[ GitHub ]# File 'activesupport/lib/active_support/testing/tagged_logging.rb', line 8
attr_writer :tagged_logger
Instance Method Details
#before_setup
[ GitHub ]# File 'activesupport/lib/active_support/testing/tagged_logging.rb', line 10
def before_setup if tagged_logger && tagged_logger.info? heading = "#{self.class}: #{name}" divider = "-" * heading.size tagged_logger.info divider tagged_logger.info heading tagged_logger.info divider end super end