summaryrefslogtreecommitdiffstats
path: root/test/unit/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-03-01 09:01:05 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-03-01 09:01:05 +0000
commit69657be5348e989d5b5401c08fc473a793cdc55c (patch)
treeb4e1fde2e3c885b69ca39eb9c21c89154f00c871 /test/unit/lib
parent5f0509435ae9c234066ff7eea9f720ecbab88400 (diff)
downloadredmine-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.rb6
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