]> source.dussan.org Git - redmine.git/commitdiff
scm: strict Ruby 1.9 string test in unit model test.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 17 Mar 2011 03:52:45 +0000 (03:52 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 17 Mar 2011 03:52:45 +0000 (03:52 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5160 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/changeset_test.rb

index 4da43d1c9940d345412f9dc45838010eb8593886..e2628e08b1fbd069b346ca3c10c352b7b9755955 100644 (file)
@@ -261,8 +261,8 @@ class ChangesetTest < ActiveSupport::TestCase
       s1 = "\xC2\x80"
       s2 = "\xc3\x82\xc2\x80"
       if s1.respond_to?(:force_encoding)
-        s3 = s1
-        s4 = s2
+        s3 = s1.dup
+        s4 = s2.dup
         s1.force_encoding('ASCII-8BIT')
         s2.force_encoding('ASCII-8BIT')
         s3.force_encoding('ISO-8859-1')