diff --git a/lib/redmine/scm/adapters/mercurial_adapter.rb b/lib/redmine/scm/adapters/mercurial_adapter.rb index 28b842c274..a00ff4c49e 100644 --- a/lib/redmine/scm/adapters/mercurial_adapter.rb +++ b/lib/redmine/scm/adapters/mercurial_adapter.rb @@ -192,8 +192,6 @@ module Redmine end end - private - def hgversion_from_command_line @hgversion ||= %x{#{HG_BIN} --version}.match(/\(version (.*)\)/)[1] end diff --git a/test/unit/mercurial_adapter_test.rb b/test/unit/mercurial_adapter_test.rb index b4aaaec611..7c1ef85fd6 100644 --- a/test/unit/mercurial_adapter_test.rb +++ b/test/unit/mercurial_adapter_test.rb @@ -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'