class TestCaseTaggedLoggingTest

Public Instance Methods

before_setup() click to toggle source
Calls superclass method ActionDispatch::DrawOnce#before_setup
# File activesupport/test/test_case_test.rb, line 295
def before_setup
  require "stringio"
  @out = StringIO.new
  self.tagged_logger = ActiveSupport::TaggedLogging.new(Logger.new(@out))
  super
end
test_logs_tagged_with_current_test_case() click to toggle source
# File activesupport/test/test_case_test.rb, line 302
def test_logs_tagged_with_current_test_case
  assert_match "#{self.class}: #{name}\n", @out.string
end