Sha256: 2bb223854595db42d89e243367da60cd15a60fc893dbd313a54d3aee3601ea18

Contents?: true

Size: 537 Bytes

Versions: 5

Compression:

Stored size: 537 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

5 entries across 5 versions & 1 rubygems

Version Path
docparser-0.1.4 test/lib/docparser/logging_test.rb
docparser-0.1.3 test/lib/docparser/logging_test.rb
docparser-0.1.2 test/lib/docparser/logging_test.rb
docparser-0.1.1 test/lib/docparser/logging_test.rb
docparser-0.1.0 test/lib/docparser/logging_test.rb