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

Version Path
logster-0.8.2 test/logster/test_logger.rb
logster-0.8.1 test/logster/test_logger.rb
logster-0.8.0 test/logster/test_logger.rb
logster-0.1.8 test/logster/test_logger.rb
logster-0.1.7 test/logster/test_logger.rb
logster-0.1.6 test/logster/test_logger.rb
logster-0.1.5 test/logster/test_logger.rb
logster-0.1.4 test/logster/test_logger.rb
logster-0.1.3 test/logster/test_logger.rb
logster-0.1.2 test/logster/test_logger.rb
logster-0.1.1 test/logster/test_logger.rb
logster-0.1.0 test/logster/test_logger.rb