test/lib/docparser/output_test.rb in docparser-0.1.2 vs test/lib/docparser/output_test.rb in docparser-0.1.3

- old
+ new

@@ -30,11 +30,11 @@ # :nocov: # trace.enable do output.header = 'test', 'the', 'header' end header = output.instance_variable_get(:@header) - header.must_equal ['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 @@ -73,10 +73,9 @@ $method_id.must_equal :footer end end it 'should raise a NotImplementedError on write_row' do - Dir.mktmpdir do |dir| filename = File.join(dir, 'test.csv') output = DocParser::Output.new(filename: filename) -> { output.write_row([]) }.must_raise(NotImplementedError) end \ No newline at end of file