Mercurial adapter tests fix (#1469).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1563 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2008-06-18 17:02:39 +00:00
parent af734b1b38
commit fda7bcdfb6
2 changed files with 3 additions and 5 deletions

View File

@ -192,8 +192,6 @@ module Redmine
end
end
private
def hgversion_from_command_line
@hgversion ||= %x{#{HG_BIN} --version}.match(/\(version (.*)\)/)[1]
end

View File

@ -4,9 +4,9 @@ begin
class MercurialAdapterTest < Test::Unit::TestCase
TEMPLATES_DIR = "#{RAILS_ROOT}/extra/mercurial"
TEMPLATE_NAME = "hg-template"
TEMPLATE_EXTENSION = "tmpl"
TEMPLATES_DIR = Redmine::Scm::Adapters::MercurialAdapter::TEMPLATES_DIR
TEMPLATE_NAME = Redmine::Scm::Adapters::MercurialAdapter::TEMPLATE_NAME
TEMPLATE_EXTENSION = Redmine::Scm::Adapters::MercurialAdapter::TEMPLATE_EXTENSION
REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/mercurial_repository'