diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-09 06:43:23 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-09 06:43:23 +0000 |
commit | 0681d086e288aea2eda090be47dd1a32aea08b30 (patch) | |
tree | f4a54e19d0af949139e10ec55a8fce4219b0608b /test | |
parent | 23a27bd6e413797b7b78d50587283c3150708141 (diff) | |
download | redmine-0681d086e288aea2eda090be47dd1a32aea08b30.tar.gz redmine-0681d086e288aea2eda090be47dd1a32aea08b30.zip |
PDF: check Japanese general_pdf_encoding is CP932 in unit test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5712 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/lib/redmine/export/pdf_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/export/pdf_test.rb b/test/unit/lib/redmine/export/pdf_test.rb index 98b30cc6d..d2bd569b7 100644 --- a/test/unit/lib/redmine/export/pdf_test.rb +++ b/test/unit/lib/redmine/export/pdf_test.rb @@ -22,6 +22,7 @@ class PdfTest < ActiveSupport::TestCase def test_fix_text_encoding_nil set_language_if_valid 'ja' + assert_equal 'CP932', l(:general_pdf_encoding) pdf = Redmine::Export::PDF::IFPDF.new('ja') assert pdf assert_equal '', pdf.fix_text_encoding(nil) @@ -29,6 +30,7 @@ class PdfTest < ActiveSupport::TestCase def test_fix_text_encoding_cannot_convert_ja_cp932 set_language_if_valid 'ja' + assert_equal 'CP932', l(:general_pdf_encoding) pdf = Redmine::Export::PDF::IFPDF.new('ja') assert pdf utf8_txt_1 = "\xe7\x8b\x80\xe6\x85\x8b" |