From 29f9fbd2ee2249f41acd564be17b93ff02ae442d Mon Sep 17 00:00:00 2001
From: Toshi MARUYAMA <marutosijp2@yahoo.co.jp>
Date: Wed, 16 Feb 2011 11:18:18 +0000
Subject: [PATCH] scm: mercurial: set instance value flag of whether "hg diff
 -c" supports true at tests (#7518).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4855 e93f8b46-1217-0410-a6f0-8f06a7374b81
---
 test/functional/repositories_mercurial_controller_test.rb    | 2 +-
 test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb
index 219082828..f784d049d 100644
--- a/test/functional/repositories_mercurial_controller_test.rb
+++ b/test/functional/repositories_mercurial_controller_test.rb
@@ -34,7 +34,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
     User.current = nil
     @repository = Repository::Mercurial.create(:project => Project.find(3), :url => REPOSITORY_PATH)
     assert @repository
-    @diff_c_support = @repository.scm.class.client_version_above?([1, 2])
+    @diff_c_support = true
   end
 
   if File.directory?(REPOSITORY_PATH)
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 e38c31ab1..d2202f735 100644
--- a/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
@@ -13,7 +13,7 @@ begin
     if File.directory?(REPOSITORY_PATH)
       def setup
         @adapter = Redmine::Scm::Adapters::MercurialAdapter.new(REPOSITORY_PATH)
-        @diff_c_support = @adapter.class.client_version_above?([1, 2])
+        @diff_c_support = true
       end
 
       def test_hgversion
-- 
GitLab