test/package/table/test_table01.rb in write_xlsx-0.58.0 vs test/package/table/test_table01.rb in write_xlsx-0.59.0
- old
+ new
@@ -11,11 +11,10 @@
def test_table01
# Set the table properties.
@worksheet.add_table('C3:F13')
- table = Writexlsx::Package::Table.new
- table.properties = @worksheet.tables[0]
+ table = @worksheet.tables[0]
table.__send__(:assemble_xml_file)
result = got_to_array(table.instance_variable_get(:@writer).string)
assert_equal(expected, result)