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

Version Path
write_xlsx-0.64.1 test/worksheet/test_write_worksheet.rb
write_xlsx-0.64.0 test/worksheet/test_write_worksheet.rb
write_xlsx-0.62.0 test/worksheet/test_write_worksheet.rb
write_xlsx-0.61.0 test/worksheet/test_write_worksheet.rb
write_xlsx-0.60.0 test/worksheet/test_write_worksheet.rb
write_xlsx-0.59.0 test/worksheet/test_write_worksheet.rb
write_xlsx-0.58.0 test/worksheet/test_write_worksheet.rb
write_xlsx-0.57.0 test/worksheet/test_write_worksheet.rb
write_xlsx-0.56.0 test/worksheet/test_write_worksheet.rb
write_xlsx-0.55.0 test/worksheet/test_write_worksheet.rb
write_xlsx-0.54.0 test/worksheet/test_write_worksheet.rb
write_xlsx-0.51.0 test/worksheet/test_write_worksheet.rb
write_xlsx-0.0.4 test/worksheet/test_write_worksheet.rb
write_xlsx-0.0.3 test/worksheet/test_write_worksheet.rb
write_xlsx-0.0.2 test/worksheet/test_write_worksheet.rb