Sha256: 1f121cdce08de0bd0cb09c57182ab2c980b28c3be7d9624735a80926342a2a2e

Contents?: true

Size: 664 Bytes

Versions: 7

Compression:

Stored size: 664 Bytes

Contents

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

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

  def teardown
    @tempfile.close(true)
  end

  def test_comment03
    @xlsx = 'comment03.xlsx'
    workbook  = WriteXLSX.new(@io)
    worksheet = workbook.add_worksheet

    worksheet.write('A1', 'Foo')
    worksheet.write_comment('A1',         'Some text')
    worksheet.write_comment('XFD1048576', 'Some text')

    # Set the author to match the target XLSX file.
    worksheet.comments_author = 'John'

    workbook.close
    compare_for_regression(
      nil,
      { 'xl/workbook.xml' => ['<workbookView'] }
    )
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
write_xlsx-0.86.0 test/regression/test_comment03.rb
write_xlsx-0.85.11 test/regression/test_comment03.rb
write_xlsx-0.85.10 test/regression/test_comment03.rb
write_xlsx-0.85.9 test/regression/test_comment03.rb
write_xlsx-0.85.8 test/regression/test_comment03.rb
write_xlsx-0.85.7 test/regression/test_comment03.rb
write_xlsx-0.85.6 test/regression/test_comment03.rb