Source: show | on GitHub
# File activesupport/test/test_case_test.rb, line 164 def before_setup require 'stringio' @out = StringIO.new self.tagged_logger = ActiveSupport::TaggedLogging.new(Logger.new(@out)) super end
# File activesupport/test/test_case_test.rb, line 171 def test_logs_tagged_with_current_test_case assert_match "#{self.class}: #{name}\n", @out.string end