diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-03-01 09:01:05 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-03-01 09:01:05 +0000 |
commit | 69657be5348e989d5b5401c08fc473a793cdc55c (patch) | |
tree | b4e1fde2e3c885b69ca39eb9c21c89154f00c871 /test/unit/lib | |
parent | 5f0509435ae9c234066ff7eea9f720ecbab88400 (diff) | |
download | redmine-69657be5348e989d5b5401c08fc473a793cdc55c.tar.gz redmine-69657be5348e989d5b5401c08fc473a793cdc55c.zip |
Test failure with ruby 2.0.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11507 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib')
-rw-r--r-- | test/unit/lib/redmine/export/pdf_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/lib/redmine/export/pdf_test.rb b/test/unit/lib/redmine/export/pdf_test.rb index 7b9488de0..90c086926 100644 --- a/test/unit/lib/redmine/export/pdf_test.rb +++ b/test/unit/lib/redmine/export/pdf_test.rb @@ -35,9 +35,9 @@ class PdfTest < ActiveSupport::TestCase txt_1 = Redmine::Export::PDF::RDMPdfEncoding::rdm_from_utf8(utf8_txt_1, encoding) txt_2 = Redmine::Export::PDF::RDMPdfEncoding::rdm_from_utf8(utf8_txt_2, encoding) txt_3 = Redmine::Export::PDF::RDMPdfEncoding::rdm_from_utf8(utf8_txt_3, encoding) - assert_equal "?\x91\xd4", txt_1 - assert_equal "?\x91\xd4?", txt_2 - assert_equal "??\x91\xd4?", txt_3 + assert_equal "?\x91\xd4".force_encoding("ASCII-8BIT"), txt_1 + assert_equal "?\x91\xd4?".force_encoding("ASCII-8BIT"), txt_2 + assert_equal "??\x91\xd4?".force_encoding("ASCII-8BIT"), txt_3 assert_equal "ASCII-8BIT", txt_1.encoding.to_s assert_equal "ASCII-8BIT", txt_2.encoding.to_s assert_equal "ASCII-8BIT", txt_3.encoding.to_s |