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