Sha256: 672e504f31c6de3d875c90f808bba14ce1f3e4ba2df847b86d0e68da782e5fa2

Contents?: true

Size: 435 Bytes

Versions: 3

Compression:

Stored size: 435 Bytes

Contents

require 'stringio'
require 'iruby/logger'

class IRubyTest::MultiLoggerTest < IRubyTest::TestBase
  def test_multilogger
    out, err = StringIO.new, StringIO.new
    logger = IRuby::MultiLogger.new(Logger.new(out), Logger.new(err))
    logger.warn 'You did a bad thing'
    assert_match 'WARN', out.string
    assert_match 'WARN', err.string
    assert_match 'bad thing', out.string
    assert_match 'bad thing', err.string
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
iruby-0.6.1 test/iruby/multi_logger_test.rb
iruby-0.6.0 test/iruby/multi_logger_test.rb
iruby-0.5.0 test/iruby/multi_logger_test.rb