]> source.dussan.org Git - redmine.git/commitdiff
scm: mercurial: add test of non ASCII tag in unit adapter test (#1981).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Mar 2011 04:55:03 +0000 (04:55 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Mar 2011 04:55:03 +0000 (04:55 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5114 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb

index 4c8a58fa08a15c774bca9f2ef79010296ca7c499..ab0809862dc0caae556b47e502e60e1228aa6879 100644 (file)
@@ -284,6 +284,12 @@ begin
         end
       end
 
+      def test_tag_non_ascii
+        p = "latin-1-dir/test-#{@char_1}-1.txt"
+        assert @adapter.cat(p, @tag_char_1)
+        assert_equal 1, @adapter.annotate(p, @tag_char_1).lines.length
+      end
+
       def test_nodes_in_branch
          [
             'default',