Sha256: e9a89dac191ffca8db0c717261af3847312b1b6d629ca55155bc213762e1870f
Contents?: true
Size: 913 Bytes
Versions: 19
Compression:
Stored size: 913 Bytes
Contents
# -*- coding: utf-8 -*- require 'helper' require 'write_xlsx' require 'stringio' class TestChartsheet < Minitest::Test def setup workbook = WriteXLSX.new(StringIO.new) @chartsheet = Writexlsx::Chartsheet.new(workbook, 1, '') end def test_chartsheet01 @chartsheet.__send__(:assemble_xml_file) result = @chartsheet.instance_variable_get(:@writer).string assert_equal(expected_to_array(expected), got_to_array(result)) end def expected <<EOS <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <chartsheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"> <sheetPr/> <sheetViews> <sheetView workbookViewId="0"/> </sheetViews> <pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3"/> <drawing r:id="rId1"/> </chartsheet> EOS end end
Version data entries
19 entries across 19 versions & 1 rubygems