# -*- coding: utf-8 -*- require 'helper' require 'write_xlsx/workbook' require 'stringio' class TestWorkbook03 < Minitest::Test def test_workbook_03 workbook = Writexlsx::Workbook.new(StringIO.new) workbook.add_worksheet('Non Default Name') workbook.add_worksheet('Another Name') workbook.__send__('assemble_xml_file') result = got_to_array(workbook.xml_str) expected = expected_to_array(< EOS ) assert_equal(expected, result) end end