Sha256: 45a0ba901453327cf46cf06392be30604a206d7b0e84916fdce3711dabfc52d6

Contents?: true

Size: 1.37 KB

Versions: 7

Compression:

Stored size: 1.37 KB

Contents

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

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

  def teardown
    @tempfile.close(true)
  end

  def test_format02
    @xlsx = 'format02.xlsx'
    workbook  = WriteXLSX.new(@io)
    worksheet = workbook.add_worksheet

    worksheet.set_row(0, 30)

    format1 = workbook.add_format(
                                  :font     => "Arial",
                                  :bold     => 1,
                                  :locked   => 1,
                                  :rotation => 0,
                                  :align    => "left",
                                  :valign   => "bottom"
                                  )

    format2 = workbook.add_format(
                                  :font     => "Arial",
                                  :bold     => 1,
                                  :locked   => 1,
                                  :rotation => 90,
                                  :align    => "center",
                                  :valign   => "bottom"
                                  )

    worksheet.write('A1', 'Foo', format1)
    worksheet.write('B1', 'Bar', format2)

    workbook.close
    compare_for_regression(
                                {},
                                {'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_format02.rb
write_xlsx-0.85.11 test/regression/test_format02.rb
write_xlsx-0.85.10 test/regression/test_format02.rb
write_xlsx-0.85.9 test/regression/test_format02.rb
write_xlsx-0.85.8 test/regression/test_format02.rb
write_xlsx-0.85.7 test/regression/test_format02.rb
write_xlsx-0.85.6 test/regression/test_format02.rb