Sha256: f64332757aec4cbc22a5e7ccb225683d55dfbf2f80446db38d3f346a765fd373
Contents?: true
Size: 623 Bytes
Versions: 3
Compression:
Stored size: 623 Bytes
Contents
# frozen_string_literal: true require_relative './xlsx-func-testcase' class TestFitToPages < XlsxWriterTestCase test 'fit_to_pages04' do |wb, t| t.ignore_elements = { 'xl/worksheets/sheet1.xml' => [ '<pageMargins' ] } ws = wb.add_worksheet ws.fit_to_pages(3, 2) ws.paper = 9 ws.vertical_dpi = 200 ws.write_string 0, 'A', 'Foo', nil end test 'fit_to_pages05' do |wb, t| t.ignore_elements = { 'xl/worksheets/sheet1.xml' => [ '<pageMargins' ] } ws = wb.add_worksheet ws.fit_to_pages(1, 0) ws.paper = 9 ws.vertical_dpi = 200 ws.write_string 0, 'A', 'Foo', nil end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xlsxwriter-0.1.2.pre | test/test-fit-to-pages.rb |
xlsxwriter-0.1.1 | test/test-fit-to-pages.rb |
xlsxwriter-0.1.0 | test/test-fit-to-pages.rb |