From 9d9c0716f22a841b7ba4bbf3c6065d01d9781e7e Mon Sep 17 00:00:00 2001
From: Toshi MARUYAMA <marutosijp2@yahoo.co.jp>
Date: Fri, 18 Feb 2011 00:58:08 +0000
Subject: [PATCH] scm: mercurial: fix unit lib test_info test fails on Windows.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4862 e93f8b46-1217-0410-a6f0-8f06a7374b81
---
 test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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 d2202f735..36b61061d 100644
--- a/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
@@ -47,7 +47,8 @@ begin
         [REPOSITORY_PATH, REPOSITORY_PATH + "/",
              REPOSITORY_PATH + "//"].each do |repo|
           adp = Redmine::Scm::Adapters::MercurialAdapter.new(repo)
-          assert_equal REPOSITORY_PATH, adp.info.root_url
+          repo_path =  adp.info.root_url.gsub(/\\/, "/")
+          assert_equal REPOSITORY_PATH, repo_path
           assert_equal '16', adp.info.lastrev.revision
           assert_equal '4cddb4e45f52',adp.info.lastrev.scmid
         end
-- 
GitLab