test/lib/docparser/output/nil_output_test.rb in docparser-0.2.3 vs test/lib/docparser/output/nil_output_test.rb in docparser-0.3.0
- old
+ new
@@ -1,15 +1,10 @@
+# frozen_string_literal: true
+
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
@@ -18,10 +13,10 @@
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.add_row %w[aap noot mies]
+ output.add_row %w[aap noot mies]
output.rowcount.must_equal 0
end
end