Sha256: ece13f8ab1fbfa4d5a85cd192cacad85f184e9a38e93783a1d40d6f08a82f6ac

Contents?: true

Size: 662 Bytes

Versions: 14

Compression:

Stored size: 662 Bytes

Contents

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

class TestRegressionComment13 < Minitest::Test
  def setup
    setup_dir_var
  end

  def teardown
    @tempfile.close(true)
  end

  def test_comment13
    @xlsx = 'comment13.xlsx'
    workbook  = WriteXLSX.new(@io)
    worksheet = workbook.add_worksheet

    worksheet.write('A1', 'Foo')
    worksheet.write_comment(
      'B2',
      'Some text',
      :font => 'Courier',
      :font_size => 10,
      :font_family => 3
    )

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

    workbook.close
    compare_for_regression(
      ['xl/styles.xml'],
      {}
    )
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
write_xlsx-1.09.4 test/regression/test_comment13.rb
write_xlsx-1.09.3 test/regression/test_comment13.rb
write_xlsx-1.09.2 test/regression/test_comment13.rb
write_xlsx-1.09.1 test/regression/test_comment13.rb
write_xlsx-1.09.0 test/regression/test_comment13.rb
write_xlsx-1.08.2 test/regression/test_comment13.rb
write_xlsx-1.08.1 test/regression/test_comment13.rb
write_xlsx-1.08.0 test/regression/test_comment13.rb
write_xlsx-1.07.0 test/regression/test_comment13.rb
write_xlsx-1.04.0 test/regression/test_comment13.rb
write_xlsx-1.02.0 test/regression/test_comment13.rb
write_xlsx-1.01.0 test/regression/test_comment13.rb
write_xlsx-1.00.0 test/regression/test_comment13.rb
write_xlsx-0.99.0 test/regression/test_comment13.rb