Sha256: 9e5b95f89faf9e8ba14200c28e70c916e9e460cd234e26c4ba4b9d470d8eb0c7

Contents?: true

Size: 523 Bytes

Versions: 18

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="0" type="noConversion"/>'
    assert_equal(expected, result)
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
write_xlsx-0.86.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.85.11 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.85.10 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.85.9 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.85.8 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.85.7 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.85.6 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.85.5 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.85.4 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.85.3 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.85.2 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.85.1 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.83.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.81.1 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.81.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.80.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.79.0 test/worksheet/test_write_phonetic_pr.rb
write_xlsx-0.78.0 test/worksheet/test_write_phonetic_pr.rb