Sha256: 188a0318e162a81c038f370f952b61a9a95df6af238dd1bce9ca75c9b4c05e42

Contents?: true

Size: 1.05 KB

Versions: 33

Compression:

Stored size: 1.05 KB

Contents

# -*- coding: utf-8 -*-
require 'helper'
require 'write_xlsx/workbook'
require 'stringio'

class TestWorkbook02 < Test::Unit::TestCase
  def test_workbook_01
    workbook = Writexlsx::Workbook.new(StringIO.new)
    workbook.add_worksheet
    workbook.add_worksheet
    workbook.__send__('assemble_xml_file')
    result = got_to_array(workbook.xml_str)
    expected = expected_to_array(<<EOS
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
  <fileVersion appName="xl" lastEdited="4" lowestEdited="4" rupBuild="4505"/>
  <workbookPr defaultThemeVersion="124226"/>
  <bookViews>
    <workbookView xWindow="240" yWindow="15" windowWidth="16095" windowHeight="9660"/>
  </bookViews>
  <sheets>
    <sheet name="Sheet1" sheetId="1" r:id="rId1"/>
    <sheet name="Sheet2" sheetId="2" r:id="rId2"/>
  </sheets>
  <calcPr calcId="124519" fullCalcOnLoad="1"/>
</workbook>
EOS
    )
    assert_equal(expected, result)
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
write_xlsx-0.86.0 test/workbook/test_workbook_02.rb
write_xlsx-0.85.11 test/workbook/test_workbook_02.rb
write_xlsx-0.85.10 test/workbook/test_workbook_02.rb
write_xlsx-0.85.9 test/workbook/test_workbook_02.rb
write_xlsx-0.85.8 test/workbook/test_workbook_02.rb
write_xlsx-0.85.7 test/workbook/test_workbook_02.rb
write_xlsx-0.85.6 test/workbook/test_workbook_02.rb
write_xlsx-0.85.5 test/workbook/test_workbook_02.rb
write_xlsx-0.85.4 test/workbook/test_workbook_02.rb
write_xlsx-0.85.3 test/workbook/test_workbook_02.rb
write_xlsx-0.85.2 test/workbook/test_workbook_02.rb
write_xlsx-0.85.1 test/workbook/test_workbook_02.rb
write_xlsx-0.83.0 test/workbook/test_workbook_02.rb
write_xlsx-0.81.1 test/workbook/test_workbook_02.rb
write_xlsx-0.81.0 test/workbook/test_workbook_02.rb
write_xlsx-0.80.0 test/workbook/test_workbook_02.rb
write_xlsx-0.79.0 test/workbook/test_workbook_02.rb
write_xlsx-0.78.0 test/workbook/test_workbook_02.rb
write_xlsx-0.77.2 test/workbook/test_workbook_02.rb
write_xlsx-0.77.1 test/workbook/test_workbook_02.rb