Skip to content

Commit

Permalink
scm: mercurial: set instance value flag of whether "hg diff -c" suppo…
Browse files Browse the repository at this point in the history
…rts true at tests (#7518).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4855 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information
marutosi committed Feb 16, 2011
1 parent 4b1e16e commit 05210f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/functional/repositories_mercurial_controller_test.rb
Expand Up @@ -34,7 +34,7 @@ def setup
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)
Expand Down
Expand Up @@ -13,7 +13,7 @@ class MercurialAdapterTest < ActiveSupport::TestCase
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
Expand Down

0 comments on commit 05210f1

Please sign in to comment.