Sha256: b847b9d638b52a89ee4343772e809bf43fb20b95b34900f572d12f6d2deb86ff
Contents?: true
Size: 412 Bytes
Versions: 10
Compression:
Stored size: 412 Bytes
Contents
require 'test_helper' module Chillout class PrefixedLoggerTest < ChilloutTestCase def test_error_message_is_prefixed output = StringIO.new logger = Logger.new(output) prefixed_logger = PrefixedLogger.new("Chillout", logger) prefixed_logger.error "Someone is wrong on the internet" assert_includes output.string, "[Chillout] Someone is wrong on the internet" end end end
Version data entries
10 entries across 10 versions & 1 rubygems