Sha256: ee0fd54bbc8125eec55f27f62589ee7e5170b8a2833f2cdca000032c52bb073e

Contents?: true

Size: 700 Bytes

Versions: 7

Compression:

Stored size: 700 Bytes

Contents

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

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

  def teardown
    @tempfile.close(true)
  end

  def test_comment09
    @xlsx = 'comment09.xlsx'
    workbook  = WriteXLSX.new(@io)
    worksheet = workbook.add_worksheet

    worksheet.write_comment('A1', 'Some text', :author => 'John')
    worksheet.write_comment('A2', 'Some text', :author => 'Perl')
    worksheet.write_comment('A3', '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_comment09.rb
write_xlsx-0.85.11 test/regression/test_comment09.rb
write_xlsx-0.85.10 test/regression/test_comment09.rb
write_xlsx-0.85.9 test/regression/test_comment09.rb
write_xlsx-0.85.8 test/regression/test_comment09.rb
write_xlsx-0.85.7 test/regression/test_comment09.rb
write_xlsx-0.85.6 test/regression/test_comment09.rb