Sha256: 51075d3d08056232f7054b3035471e6f7f0ec2d6a9cb4e409ed9101738ef744b

Contents?: true

Size: 724 Bytes

Versions: 7

Compression:

Stored size: 724 Bytes

Contents

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

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

  def teardown
    @tempfile.close(true)
  end

  def test_fit_to_pages02
    @xlsx = 'fit_to_pages02.xlsx'
    workbook  = WriteXLSX.new(@io)
    worksheet = workbook.add_worksheet

    worksheet.fit_to_pages(2)
    worksheet.paper = 9

    worksheet.write('A1', 'Foo')

    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

7 entries across 7 versions & 1 rubygems

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