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.77.2 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.77.1 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.77.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.76.3 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.76.2 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.76.1 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.76.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.75.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.74.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.73.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.72.3.beta1 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.72.2 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.72.1 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.72.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.71.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.70.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.69.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.65.1 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.65.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.64.1 test/worksheet/test_write_phonetic_pr.rb