Sha256: f9c54ce1eed55b2d8785f9f08afe159fd11a6140b726e345c2336353c9054eee

Contents?: true

Size: 643 Bytes

Versions: 7

Compression:

Stored size: 643 Bytes

Contents

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

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

  def teardown
    @tempfile.close(true)
  end

  def test_comment11
    @xlsx = 'comment11.xlsx'
    workbook   = WriteXLSX.new(@io)
    worksheet1 = workbook.add_worksheet
    worksheet2 = workbook.add_worksheet

    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_for_regression(
      [],
      {'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_comment11.rb
write_xlsx-0.85.11 test/regression/test_comment11.rb
write_xlsx-0.85.10 test/regression/test_comment11.rb
write_xlsx-0.85.9 test/regression/test_comment11.rb
write_xlsx-0.85.8 test/regression/test_comment11.rb
write_xlsx-0.85.7 test/regression/test_comment11.rb
write_xlsx-0.85.6 test/regression/test_comment11.rb