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

Version Path
logster-0.0.13 test/logster/test_logger.rb
logster-0.0.12 test/logster/test_logger.rb
logster-0.0.11 test/logster/test_logger.rb
logster-0.0.10 test/logster/test_logger.rb
logster-0.0.9 test/logster/test_logger.rb
logster-0.0.8 test/logster/test_logger.rb
logster-0.0.7 test/logster/test_logger.rb
logster-0.0.6 test/logster/test_logger.rb
logster-0.0.5 test/logster/test_logger.rb