]> source.dussan.org Git - redmine.git/commitdiff
PDF: set language 'ja' in '0x5c'(backslash) handling unit lib test (#61, #117).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 6 Apr 2011 02:41:48 +0000 (02:41 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 6 Apr 2011 02:41:48 +0000 (02:41 +0000)
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

index 371c0caac18dfadf4ea39a0f81c9bf8917942d08..14e4f96eee97e61b5b70f977ed4f8c3ab0912b94 100644 (file)
 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')