# -*- coding: utf-8 -*- require 'helper' require 'write_xlsx' require 'stringio' class TestWorksheet01 < Test::Unit::TestCase def setup @workbook = WriteXLSX.new(StringIO.new) @worksheet = @workbook.add_worksheet('') end def test_assemble_xml_file @worksheet.select @worksheet.assemble_xml_file result = got_to_array(@worksheet.instance_variable_get(:@writer).string) expected = expected_to_array(< EOS ) assert_equal(expected, result) end end