Sha256: e52d1dd4a5d50d6d9106e1f8b10b2b584ccd2d27f1a2396d6b616c7e5e0ab18a

Contents?: true

Size: 664 Bytes

Versions: 4

Compression:

Stored size: 664 Bytes

Contents

require_relative '../../../test_helper'

describe DocParser::NilOutput do
  before do
    Log4r::Logger['docparser'].level = Log4r::ERROR
  end
  after do
    Log4r::Logger['docparser'].level = Log4r::INFO
  end

  it 'should not create a file' do
    Dir.mktmpdir do |dir|
      filename = File.join(dir, '*')
      DocParser::NilOutput.new
      Dir[filename].must_be_empty
    end
  end

  it 'must give the correct rowcount' do
    output = DocParser::NilOutput.new
    output.header = 'test', 'the', 'header'
    output.rowcount.must_equal 0
    output.add_row %w(aap noot mies)
    output.add_row %w(aap noot mies)
    output.rowcount.must_equal 0
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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