Sha256: 500124e9cd8612c4c52f22d4093dbcbfb3ad41cdcbfc8b9b24b17e4068e7d937

Contents?: true

Size: 523 Bytes

Versions: 30

Compression:

Stored size: 523 Bytes

Contents

# -*- coding: utf-8 -*-
require 'helper'
require 'write_xlsx/workbook'
require 'write_xlsx/worksheet'
require 'stringio'

class TestWritePhoneticPr < Test::Unit::TestCase
  def setup
    @workbook = WriteXLSX.new(StringIO.new)
    @worksheet = @workbook.add_worksheet('')
  end

  def test_write_phonetic_pr
    @worksheet.__send__('write_phonetic_pr')
    result = @worksheet.instance_variable_get(:@writer).string
    expected = '<phoneticPr fontId="1" type="noConversion"/>'
    assert_equal(expected, result)
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
write_xlsx-0.64.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.62.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.61.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.60.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.59.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.58.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.57.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.56.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.55.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.54.0 test/worksheet/test_write_phonetic_pr.rb