summaryrefslogtreecommitdiffstats
path: root/test/unit/helpers
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-12 05:03:59 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-12 05:03:59 +0000
commitbb48d96d3037c9ef909af310fc21ef19b7550d52 (patch)
tree48fa791a9cefa07b013a1b9f9a150e170442c1db /test/unit/helpers
parent62952a9885072aec513e57193a6a0ff525b9adc8 (diff)
downloadredmine-bb48d96d3037c9ef909af310fc21ef19b7550d52.tar.gz
redmine-bb48d96d3037c9ef909af310fc21ef19b7550d52.zip
scm: replace invalid utf-8 sequences instead of stripping in displaying repository contents on Ruby 1.8.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5427 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/helpers')
-rw-r--r--test/unit/helpers/repository_helper_test.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/unit/helpers/repository_helper_test.rb b/test/unit/helpers/repository_helper_test.rb
index 9532c3011..a1c778e88 100644
--- a/test/unit/helpers/repository_helper_test.rb
+++ b/test/unit/helpers/repository_helper_test.rb
@@ -94,12 +94,10 @@ class RepositoryHelperTest < HelperTestCase
s1.force_encoding("ASCII-8BIT") if s1.respond_to?(:force_encoding)
str = to_utf8(s1)
if str.respond_to?(:force_encoding)
- assert_equal "Texte encod? en ISO-8859-1.", str
assert str.valid_encoding?
assert_equal "UTF-8", str.encoding.to_s
- else
- assert_equal "Texte encod en ISO-8859-1.", str
end
+ assert_equal "Texte encod? en ISO-8859-1.", str
end
end
end