Sha256: ff3bf2342db0bd911afb28be8b721a4d6e4aea2b9ad202947c7b489b69455c06

Contents?: true

Size: 1.09 KB

Versions: 19

Compression:

Stored size: 1.09 KB

Contents

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

class TestRegressionExcel2003Style03 < Minitest::Test
  def setup
    setup_dir_var
  end

  def teardown
    @tempfile.close(true)
  end

  def test_excel2003_style03
    @xlsx = 'excel2003_style03.xlsx'
    workbook    = WriteXLSX.new(@io, :excel2003_style => true)
    worksheet   = workbook.add_worksheet

    worksheet.paper = 9

    worksheet.set_header('Page &P')
    worksheet.set_footer('&A')

    bold = workbook.add_format(:bold => true)

    worksheet.write('A1', 'Foo')
    worksheet.write('A2', 'Bar', bold)

    workbook.close
    compare_for_regression(
                                [
                                 'xl/printerSettings/printerSettings1.bin',
                                 'xl/worksheets/_rels/sheet1.xml.rels'
                                ],
                                {
                                  '[Content_Types].xml'      => ['<Default Extension="bin"'],
                                  'xl/worksheets/sheet1.xml' => ['<pageMargins']
                                }
                                )
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
write_xlsx-1.09.4 test/regression/test_excel2003_style03.rb
write_xlsx-1.09.3 test/regression/test_excel2003_style03.rb
write_xlsx-1.09.2 test/regression/test_excel2003_style03.rb
write_xlsx-1.09.1 test/regression/test_excel2003_style03.rb
write_xlsx-1.09.0 test/regression/test_excel2003_style03.rb
write_xlsx-1.08.2 test/regression/test_excel2003_style03.rb
write_xlsx-1.08.1 test/regression/test_excel2003_style03.rb
write_xlsx-1.08.0 test/regression/test_excel2003_style03.rb
write_xlsx-1.07.0 test/regression/test_excel2003_style03.rb
write_xlsx-1.04.0 test/regression/test_excel2003_style03.rb
write_xlsx-1.02.0 test/regression/test_excel2003_style03.rb
write_xlsx-1.01.0 test/regression/test_excel2003_style03.rb
write_xlsx-1.00.0 test/regression/test_excel2003_style03.rb
write_xlsx-0.99.0 test/regression/test_excel2003_style03.rb
write_xlsx-0.97.0 test/regression/test_excel2003_style03.rb
write_xlsx-0.90.0 test/regression/test_excel2003_style03.rb
write_xlsx-0.89.0 test/regression/test_excel2003_style03.rb
write_xlsx-0.88.0 test/regression/test_excel2003_style03.rb
write_xlsx-0.87.0 test/regression/test_excel2003_style03.rb