From 7f923cdc66dbf5c58fcbef377cecb7c68fd96c9d Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 6 Apr 2011 02:41:48 +0000 Subject: [PATCH] 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 --- test/unit/lib/redmine/export/pdf_test.rb | 2 ++ 1 file changed, 2 insertions(+) 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') -- 2.39.5