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
end end
private
def hgversion_from_command_line def hgversion_from_command_line
@hgversion ||= %x{#{HG_BIN} --version}.match(/\(version (.*)\)/)[1] @hgversion ||= %x{#{HG_BIN} --version}.match(/\(version (.*)\)/)[1]
end end

View File

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