PDF: set language 'ja' in '0x5c'(backslash) handling unit lib test (#61, #117).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5339 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-04-06 02:41:48 +00:00
parent 7ca82846fc
commit 7f923cdc66
1 changed files with 2 additions and 0 deletions

View File

@ -18,8 +18,10 @@
require File.expand_path('../../../../../test_helper', __FILE__)
class PdfTest < ActiveSupport::TestCase
include Redmine::I18n
def test_fix_text_encoding_backslash_ascii
set_language_if_valid 'ja'
pdf = Redmine::Export::PDF::IFPDF.new('ja')
assert pdf
assert_equal '\\\\abcd', pdf.fix_text_encoding('\\abcd')