test/lib/docparser/output/csv_output_test.rb in docparser-0.1.2 vs test/lib/docparser/output/csv_output_test.rb in docparser-0.1.3
- old
+ new
@@ -28,11 +28,11 @@
it 'must save some rows' do
Dir.mktmpdir do |dir|
filename = File.join(dir, 'test.csv')
output = DocParser::CSVOutput.new(filename: filename)
- output.add_row ['aap', 'noot', 'mies']
+ output.add_row %w(aap noot mies)
output.add_row ['aap', 'noot', 'mies;']
output.close
open(filename).read.must_equal "aap;noot;mies\naap;noot;\"mies;\"\n"
end
end
@@ -41,11 +41,11 @@
Dir.mktmpdir do |dir|
filename = File.join(dir, 'test.csv')
output = DocParser::CSVOutput.new(filename: filename)
output.header = 'test', 'the', 'header'
output.rowcount.must_equal 0
- output.add_row ['aap', 'noot', 'mies']
- output.add_row ['aap', 'noot', 'mies']
+ output.add_row %w(aap noot mies)
+ output.add_row %w(aap noot mies)
output.rowcount.must_equal 2
end
end
end
\ No newline at end of file