Sha256: dc267df135d1dbe322105e0ca193b384608bf2c40ed43de55ffc432104e0694e
Contents?: true
Size: 431 Bytes
Versions: 9
Compression:
Stored size: 431 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
9 entries across 9 versions & 1 rubygems