Sha256: d1c60f132ec8f0dbf4294aa33ab635edd0e0740702151c0eacc776bbd86c2c32

Contents?: true

Size: 983 Bytes

Versions: 19

Compression:

Stored size: 983 Bytes

Contents

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

class TestWorkbook01 < Test::Unit::TestCase
  def test_workbook_01
    workbook = Writexlsx::Workbook.new(StringIO.new)
    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"/>
  </sheets>
  <calcPr calcId="124519"/>
</workbook>
EOS
    )
    assert_equal(expected, result)
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
write_xlsx-0.70.0 test/workbook/test_workbook_01.rb
write_xlsx-0.69.0 test/workbook/test_workbook_01.rb
write_xlsx-0.65.1 test/workbook/test_workbook_01.rb
write_xlsx-0.65.0 test/workbook/test_workbook_01.rb
write_xlsx-0.64.1 test/workbook/test_workbook_01.rb
write_xlsx-0.64.0 test/workbook/test_workbook_01.rb
write_xlsx-0.62.0 test/workbook/test_workbook_01.rb
write_xlsx-0.61.0 test/workbook/test_workbook_01.rb
write_xlsx-0.60.0 test/workbook/test_workbook_01.rb
write_xlsx-0.59.0 test/workbook/test_workbook_01.rb
write_xlsx-0.58.0 test/workbook/test_workbook_01.rb
write_xlsx-0.57.0 test/workbook/test_workbook_01.rb
write_xlsx-0.56.0 test/workbook/test_workbook_01.rb
write_xlsx-0.55.0 test/workbook/test_workbook_01.rb
write_xlsx-0.54.0 test/workbook/test_workbook_01.rb
write_xlsx-0.51.0 test/workbook/test_workbook_01.rb
write_xlsx-0.0.4 test/workbook/test_workbook_01.rb
write_xlsx-0.0.3 test/workbook/test_workbook_01.rb
write_xlsx-0.0.2 test/workbook/test_workbook_01.rb