Sha256: d28ae895a8c2faed2a5ea48bb910ffea5ba966983628861a9915757f00db7f05

Contents?: true

Size: 808 Bytes

Versions: 7

Compression:

Stored size: 808 Bytes

Contents

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

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

  def teardown
    @tempfile.close(true)
  end

  def test_comment04
    @xlsx = 'comment04.xlsx'
    workbook  = WriteXLSX.new(@io)
    worksheet1 = workbook.add_worksheet
    worksheet2 = workbook.add_worksheet
    worksheet3 = workbook.add_worksheet

    worksheet1.write('A1', 'Foo')
    worksheet1.write_comment('B2', 'Some text')

    worksheet3.write('A1', 'Bar')
    worksheet3.write_comment('C7', 'More text')

    # Set the author to match the target XLSX file.
    worksheet1.comments_author = 'John'
    worksheet3.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_comment04.rb
write_xlsx-0.85.11 test/regression/test_comment04.rb
write_xlsx-0.85.10 test/regression/test_comment04.rb
write_xlsx-0.85.9 test/regression/test_comment04.rb
write_xlsx-0.85.8 test/regression/test_comment04.rb
write_xlsx-0.85.7 test/regression/test_comment04.rb
write_xlsx-0.85.6 test/regression/test_comment04.rb