From: Toshi MARUYAMA Date: Fri, 4 Mar 2011 08:08:13 +0000 (+0000) Subject: scm: mercurial: add unit adapter test repository for path contains space (#2664,... X-Git-Tag: 1.2.0~832 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d8e1af6156ed8d8274a2149442b439bd8369187d;p=redmine.git scm: mercurial: add unit adapter test repository for path contains space (#2664, #4455). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4998 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb index 8e971ec96..b89caa5b9 100644 --- a/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb @@ -261,6 +261,18 @@ begin assert_equal bm, @adapter.branchmap end + def test_path_space + p = 'README (1)[2]&,%.-3_4' + [15, '933ca60293d7'].each do |r1| + assert @adapter.diff(p, r1) + assert @adapter.cat(p, r1) + assert_equal 1, @adapter.annotate(p, r1).lines.length + [25, 'afc61e85bde7'].each do |r2| + assert @adapter.diff(p, r1, r2) + end + end + end + private def test_hgversion_for(hgversion, version)