Sha256: 859ebc913d18df280a9a85db9193ba47c5e71252bb2e65dba58933639e940ff8
Contents?: true
Size: 629 Bytes
Versions: 15
Compression:
Stored size: 629 Bytes
Contents
# -*- coding: utf-8 -*- require 'helper' require 'write_xlsx/workbook' require 'write_xlsx/worksheet' require 'stringio' class TestWriteWorksheet < Test::Unit::TestCase def setup @workbook = WriteXLSX.new(StringIO.new) @worksheet = @workbook.add_worksheet('') end def test_write_worksheet @worksheet.__send__('write_worksheet') result = @worksheet.instance_variable_get(:@writer).string expected = '<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">' assert_equal(expected, result) end end
Version data entries
15 entries across 15 versions & 1 rubygems