From: Toshi MARUYAMA Date: Wed, 6 Apr 2011 02:41:48 +0000 (+0000) Subject: PDF: set language 'ja' in '0x5c'(backslash) handling unit lib test (#61, #117). X-Git-Tag: 1.2.0~510 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7f923cdc66dbf5c58fcbef377cecb7c68fd96c9d;p=redmine.git 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 --- diff --git a/test/unit/lib/redmine/export/pdf_test.rb b/test/unit/lib/redmine/export/pdf_test.rb index 371c0caac..14e4f96ee 100644 --- a/test/unit/lib/redmine/export/pdf_test.rb +++ b/test/unit/lib/redmine/export/pdf_test.rb @@ -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')