test/lib/docparser/output/xlsx_output_test.rb in docparser-0.1.2 vs test/lib/docparser/output/xlsx_output_test.rb in docparser-0.1.3
- old
+ new
@@ -29,11 +29,11 @@
it 'must save some rows' do
Dir.mktmpdir do |dir|
filename = File.join(dir, 'test.xlsx')
output = DocParser::XLSXOutput.new(filename: filename)
- output.add_row ['aap', 'noot', 'mies']
+ output.add_row %w(aap noot mies)
output.add_row ['aap', 'noot', 'mies;']
output.close
sheet = output.instance_variable_get(:@sheet)
sheet.rows.length.must_equal(2)
end
@@ -43,11 +43,11 @@
Dir.mktmpdir do |dir|
filename = File.join(dir, 'test.xlsx')
output = DocParser::XLSXOutput.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