Sha256: a6c39adde7a92e13c2bd69d57540100cf4e99332f57efd82779dd750bf1e7d6a

Contents?: true

Size: 804 Bytes

Versions: 7

Compression:

Stored size: 804 Bytes

Contents

# -*- coding: utf-8 -*-
require 'helper'

class TestRegressionTable12 < Test::Unit::TestCase
  def setup
    setup_dir_var
  end

  def teardown
    @tempfile.close(true)
  end

  def test_table12
    @xlsx = 'table12.xlsx'
    workbook  = WriteXLSX.new(@io)
    worksheet = workbook.add_worksheet

    data = [
            [ 'Foo', 1234, 2000 ],
            [ 'Bar', 1256, 4000 ],
            [ 'Baz', 2234, 3000 ]
           ]

    # Set the column width to match the taget worksheet.
    worksheet.set_column('C:F', 10.288)

    # Add the table.
    worksheet.add_table('C2:F6', {:data => data})

    workbook.close
    compare_for_regression(
                                nil,
                                {  'xl/workbook.xml' => ['<workbookView'] }
                                )
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
write_xlsx-0.86.0 test/regression/test_table12.rb
write_xlsx-0.85.11 test/regression/test_table12.rb
write_xlsx-0.85.10 test/regression/test_table12.rb
write_xlsx-0.85.9 test/regression/test_table12.rb
write_xlsx-0.85.8 test/regression/test_table12.rb
write_xlsx-0.85.7 test/regression/test_table12.rb
write_xlsx-0.85.6 test/regression/test_table12.rb