Sha256: 44e85398605fb049e9ae155ca666fd0f679931aa369bf216e419c8faf8a85368

Contents?: true

Size: 538 Bytes

Versions: 4

Compression:

Stored size: 538 Bytes

Contents

require_relative '../../test_helper'

describe DocParser do
  it 'should have a valid logger' do
    logger = Log4r::Logger['docparser']
    logger.wont_be_nil
    logger.must_be_instance_of Log4r::Logger
  end

  it 'must have the correct loglevel by default' do
    Log4r::Logger['docparser'].level.must_equal Log4r::INFO
  end

  it 'should log to the correct output' do
    outputters = Log4r::Logger['docparser'].outputters
    outputters.length.must_equal 1
    outputters.first.must_be_instance_of Log4r::StdoutOutputter
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
docparser-0.2.3 test/lib/docparser/logging_test.rb
docparser-0.2.2 test/lib/docparser/logging_test.rb
docparser-0.2.0 test/lib/docparser/logging_test.rb
docparser-0.1.6 test/lib/docparser/logging_test.rb