test/lib/docparser/output_test.rb in docparser-0.2.3 vs test/lib/docparser/output_test.rb in docparser-0.3.0

- old
+ new

@@ -1,15 +1,10 @@ +# frozen_string_literal: true + require_relative '../../test_helper' describe DocParser::Output do - before do - Log4r::Logger['docparser'].level = Log4r::ERROR - end - after do - Log4r::Logger['docparser'].level = Log4r::INFO - end - it 'must create a file' do Dir.mktmpdir do |dir| filename = File.join(dir, 'test.csv') DocParser::Output.new(filename: filename) File.exist?(filename).must_equal true @@ -30,10 +25,10 @@ # :nocov: # trace.enable do output.header = 'test', 'the', 'header' end header = output.instance_variable_get(:@header) - header.must_equal %w(test the header) + header.must_equal %w[test the header] $method_id.must_equal :header end end it 'must call the open_file callback' do