Sha256: 5ba2693498cda6366c5b502454c2bcee4f69755f5157bc3d9bf85cb63ec8b203

Contents?: true

Size: 569 Bytes

Versions: 7

Compression:

Stored size: 569 Bytes

Contents

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

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

  def teardown
    @tempfile.close(true)
  end

  def test_print_options07
    @xlsx = 'print_options07.xlsx'
    workbook  = WriteXLSX.new(@io)
    worksheet = workbook.add_worksheet

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

    worksheet.paper = 9
    worksheet.vertical_dpi = 200

    worksheet.print_black_and_white

    workbook.close
    compare_for_regression(
      [],
      {'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_print_options07.rb
write_xlsx-0.85.11 test/regression/test_print_options07.rb
write_xlsx-0.85.10 test/regression/test_print_options07.rb
write_xlsx-0.85.9 test/regression/test_print_options07.rb
write_xlsx-0.85.8 test/regression/test_print_options07.rb
write_xlsx-0.85.7 test/regression/test_print_options07.rb
write_xlsx-0.85.6 test/regression/test_print_options07.rb