Sha256: 7b0e513d5345a1ed94affa8b3a1e876d5ba9697a432e8114255bd3e2f7e95f6b
Contents?: true
Size: 419 Bytes
Versions: 2
Compression:
Stored size: 419 Bytes
Contents
require_relative '../test_helper' require 'logster/logger' require 'logger' class NullStore def report(severity,progname,message) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
logster-0.0.4 | test/logster/test_logger.rb |
logster-0.0.3 | test/logster/test_logger.rb |