Sha256: 4ade10b63d3bafcf0d0fe288bf562825666514d7da290bf8c46b6f9025a09f9d
Contents?: true
Size: 429 Bytes
Versions: 12
Compression:
Stored size: 429 Bytes
Contents
require_relative '../test_helper' require 'logster/logger' require 'logger' class NullStore def report(severity,progname,message,options=nil) end end class TestLogger < Minitest::Test def setup @logger = Logster::Logger.new(NullStore.new) end def teardown end def test_chain io = StringIO.new @logger.chain Logger.new(io) @logger.warn "boom" assert_match(/W,.*boom/, io.string) end end
Version data entries
12 entries across 12 versions & 1 rubygems