Sha256: 51525347afba3de03a1a6d11e279020ee0098a7d3c0ff594bc2107e584dba580
Contents?: true
Size: 1.07 KB
Versions: 10
Compression:
Stored size: 1.07 KB
Contents
# -*- coding: utf-8 -*- require 'helper' class TestRegressionHeaderImage10 < Test::Unit::TestCase def setup setup_dir_var end def teardown File.delete(@xlsx) if File.exist?(@xlsx) end def test_header_image10 @xlsx = 'header_image10.xlsx' workbook = WriteXLSX.new(@xlsx) worksheet1 = workbook.add_worksheet worksheet2 = workbook.add_worksheet worksheet1.set_header('&L&G', nil, { :image_left => 'test/regression/images/red.jpg' }) worksheet2.write('A1', 'Foo') worksheet2.write_comment('B2', 'Some text') # Set the author to match the target XLSX file. worksheet2.comments_author = 'John' workbook.close compare_xlsx_for_regression(File.join(@regression_output, @xlsx), @xlsx, [], { 'xl/worksheets/sheet1.xml' => [ '<pageMargins', '<pageSetup' ], 'xl/worksheets/sheet2.xml' => [ '<pageMargins', '<pageSetup' ], } ) end end
Version data entries
10 entries across 10 versions & 1 rubygems