# -*- coding: utf-8 -*- require 'helper' require 'write_xlsx/package/app' class TestApp01 < Test::Unit::TestCase def test_assemble_xml_file @obj = Writexlsx::Package::App.new @obj.add_part_name('Sheet1') @obj.add_heading_pair(['Worksheets', 1]) @obj.assemble_xml_file result = got_to_array(@obj.xml_str) expected = expected_to_array(< Microsoft Excel 0 false Worksheets 1 Sheet1 false false false 12.0000 EOS ) assert_equal(expected, result) end end