summaryrefslogtreecommitdiffstats
path: root/test/unit/lib/redmine/export
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-06 05:52:07 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-06 05:52:07 +0000
commitd6e2e81f0c860c7fa5b2142a591419275e0f51cf (patch)
tree0f31a6df350980f6055f5dde962a4aa0a8ca6152 /test/unit/lib/redmine/export
parent411c7100cb7331968bef08458e0999959661099c (diff)
downloadredmine-d6e2e81f0c860c7fa5b2142a591419275e0f51cf.tar.gz
redmine-d6e2e81f0c860c7fa5b2142a591419275e0f51cf.zip
PDF: nil safe at fix_text_encoding(txt) of lib/redmine/export/pdf.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5345 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib/redmine/export')
-rw-r--r--test/unit/lib/redmine/export/pdf_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/export/pdf_test.rb b/test/unit/lib/redmine/export/pdf_test.rb
index 0281b6a92..d319ce0ec 100644
--- a/test/unit/lib/redmine/export/pdf_test.rb
+++ b/test/unit/lib/redmine/export/pdf_test.rb
@@ -20,6 +20,13 @@ require File.expand_path('../../../../../test_helper', __FILE__)
class PdfTest < ActiveSupport::TestCase
include Redmine::I18n
+ def test_fix_text_encoding_nil
+ set_language_if_valid 'ja'
+ pdf = Redmine::Export::PDF::IFPDF.new('ja')
+ assert pdf
+ assert_equal '', pdf.fix_text_encoding(nil)
+ end
+
def test_fix_text_encoding_backslash_ascii
set_language_if_valid 'ja'
pdf = Redmine::Export::PDF::IFPDF.new('ja')