# -*- coding: utf-8 -*- require 'helper' class TestRegressionHeaderImage09 < Minitest::Test def setup setup_dir_var end def test_header_image09 @xlsx = 'header_image09.xlsx' workbook = WriteXLSX.new(@io) worksheet1 = workbook.add_worksheet worksheet2 = workbook.add_worksheet worksheet1.write('A1', 'Foo') worksheet1.write_comment('B2', 'Some text') # Set the author to match the target XLSX file. worksheet1.comments_author = 'John' worksheet2.set_header('&L&G', nil, { :image_left => 'test/regression/images/red.jpg' }) workbook.close compare_for_regression( [], { 'xl/worksheets/sheet1.xml' => [ ' [ '