From: Toshi MARUYAMA Date: Wed, 6 Apr 2011 10:50:24 +0000 (+0000) Subject: PDF: add test of replacing converting error characters in FPDF ANSI on Ruby 1.8 ... X-Git-Tag: 1.2.0~500 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5eea9ec61a680e4bce5ae9b2442d0285a8f62840;p=redmine.git PDF: add test of replacing converting error characters in FPDF ANSI on Ruby 1.8 (#61). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5352 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 db7787a57..fa3a8498e 100644 --- a/test/unit/lib/redmine/export/pdf_test.rb +++ b/test/unit/lib/redmine/export/pdf_test.rb @@ -80,6 +80,13 @@ class PdfTest < ActiveSupport::TestCase pdf.fix_text_encoding(utf8_txt_2) assert_equal "??\x91\xd4?", pdf.fix_text_encoding(utf8_txt_3) + else + assert_equal "???\x91\xd4", + pdf.fix_text_encoding(utf8_txt_1) + assert_equal "???\x91\xd4???", + pdf.fix_text_encoding(utf8_txt_2) + assert_equal "??????\x91\xd4???", + pdf.fix_text_encoding(utf8_txt_3) end end end