Sha256: ee7497c2c1f8751b7f4f8c2bc6861affca72c9bb5ee765c0f5cb9ac970a62cec
Contents?: true
Size: 535 Bytes
Versions: 19
Compression:
Stored size: 535 Bytes
Contents
# -*- coding: utf-8 -*- require 'helper' require 'write_xlsx' require 'stringio' class TestWritePageSetUpPr < Minitest::Test def setup @workbook = WriteXLSX.new(StringIO.new) @worksheet = @workbook.add_worksheet('') end def test_write_page_set_up_pr @worksheet.instance_variable_get(:@page_setup).fit_page = true @worksheet.__send__('write_page_set_up_pr') result = @worksheet.instance_variable_get(:@writer).string expected = '<pageSetUpPr fitToPage="1"/>' assert_equal(expected, result) end end
Version data entries
19 entries across 19 versions & 1 rubygems