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

Version Path
write_xlsx-1.09.4 test/chartsheet/test_chartsheet01.rb
write_xlsx-1.09.3 test/chartsheet/test_chartsheet01.rb
write_xlsx-1.09.2 test/chartsheet/test_chartsheet01.rb
write_xlsx-1.09.1 test/chartsheet/test_chartsheet01.rb
write_xlsx-1.09.0 test/chartsheet/test_chartsheet01.rb
write_xlsx-1.08.2 test/chartsheet/test_chartsheet01.rb
write_xlsx-1.08.1 test/chartsheet/test_chartsheet01.rb
write_xlsx-1.08.0 test/chartsheet/test_chartsheet01.rb
write_xlsx-1.07.0 test/chartsheet/test_chartsheet01.rb
write_xlsx-1.04.0 test/chartsheet/test_chartsheet01.rb
write_xlsx-1.02.0 test/chartsheet/test_chartsheet01.rb
write_xlsx-1.01.0 test/chartsheet/test_chartsheet01.rb
write_xlsx-1.00.0 test/chartsheet/test_chartsheet01.rb
write_xlsx-0.99.0 test/chartsheet/test_chartsheet01.rb
write_xlsx-0.97.0 test/chartsheet/test_chartsheet01.rb
write_xlsx-0.90.0 test/chartsheet/test_chartsheet01.rb
write_xlsx-0.89.0 test/chartsheet/test_chartsheet01.rb
write_xlsx-0.88.0 test/chartsheet/test_chartsheet01.rb
write_xlsx-0.87.0 test/chartsheet/test_chartsheet01.rb