diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-11 03:06:43 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-11 03:06:43 +0000 |
commit | bf687888671995a95486b292923b4e8eead35fdf (patch) | |
tree | 32431d246e1fa47a77a4055573aa130cffcd63e8 /test/unit | |
parent | d5bb4b349ac2b37edb3c0dacc58237f58c123766 (diff) | |
download | redmine-bf687888671995a95486b292923b4e8eead35fdf.tar.gz redmine-bf687888671995a95486b292923b4e8eead35fdf.zip |
scm: more strict to_utf8() test in repository helper on Ruby 1.9.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5387 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/helpers/repository_helper_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/helpers/repository_helper_test.rb b/test/unit/helpers/repository_helper_test.rb index 23067ea54..9532c3011 100644 --- a/test/unit/helpers/repository_helper_test.rb +++ b/test/unit/helpers/repository_helper_test.rb @@ -89,7 +89,9 @@ class RepositoryHelperTest < HelperTestCase def test_to_utf8_invalid_utf8_sequences_should_be_stripped with_settings :repositories_encodings => '' do - s1 = File.read("#{RAILS_ROOT}/test/fixtures/encoding/iso-8859-1.txt") + # s1 = File.read("#{RAILS_ROOT}/test/fixtures/encoding/iso-8859-1.txt") + s1 = "Texte encod\xe9 en ISO-8859-1." + 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 |