Sha256: 1ddad3c659eac3d1dc23d774e977630ed1e0bac575d22c61891baa875c631c41

Contents?: true

Size: 606 Bytes

Versions: 28

Compression:

Stored size: 606 Bytes

Contents

# -*- coding: utf-8 -*-
require 'helper'
require 'write_xlsx/package/table'

class TestTableWriteTableColumn < Test::Unit::TestCase
  def setup
    workbook = WriteXLSX.new(StringIO.new)
    @worksheet = workbook.add_worksheet
  end

  def test_table_write_table_column
    expected = '<tableColumn id="1" name="Column1"/>'

    table = Writexlsx::Package::Table.new(@worksheet, 1, 1, 2, 2)
    col_data = Writexlsx::Package::Table::ColumnData.new(1)

    table.__send__(:write_table_column, col_data)
    result = table.instance_variable_get(:@writer).string

    assert_equal(expected, result)
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

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