Sha256: 15148659772f76dc1247ea7288c706f848ba9ffd468c42d539c64a1a22739695
Contents?: true
Size: 1.01 KB
Versions: 23
Compression:
Stored size: 1.01 KB
Contents
# -*- coding: utf-8 -*- require 'helper' class TestRegressionSetStartPage01 < Test::Unit::TestCase def setup setup_dir_var end def teardown File.delete(@xlsx) if File.exist?(@xlsx) end def test_set_start_page01 @xlsx = 'set_start_page01.xlsx' workbook = WriteXLSX.new(@xlsx) worksheet = workbook.add_worksheet worksheet.start_page = 1 worksheet.paper = 9 worksheet.write('A1', 'Foo') workbook.close compare_xlsx_for_regression(File.join(@regression_output, @xlsx), @xlsx, [ '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
23 entries across 23 versions & 1 rubygems