OSDN Git Service

PDF: check Japanese general_pdf_encoding is CP932 in unit test.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 9 May 2011 06:43:23 +0000 (06:43 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 9 May 2011 06:43:23 +0000 (06:43 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5712 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/export/pdf_test.rb

index 98b30cc..d2bd569 100644 (file)
@@ -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"