summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-06-10 11:09:50 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-06-10 11:09:50 +0000
commit3baabca8f2cd105922eccfdcfcc5358f4c360867 (patch)
tree5855097c82b9a9484a2e9d228d01f715ece3ab81 /test
parent5538d8417193ceb79e87ee7de22ddda867a7d756 (diff)
downloadredmine-3baabca8f2cd105922eccfdcfcc5358f4c360867.tar.gz
redmine-3baabca8f2cd105922eccfdcfcc5358f4c360867.zip
scm: mercurial: replace RAILS_ROOT to Rails.root in unit adapter test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6050 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb5
1 files changed, 1 insertions, 4 deletions
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 99315dfd1..420097555 100644
--- a/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
@@ -3,14 +3,11 @@ begin
require 'mocha'
class MercurialAdapterTest < ActiveSupport::TestCase
-
HELPERS_DIR = Redmine::Scm::Adapters::MercurialAdapter::HELPERS_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'
-
+ REPOSITORY_PATH = Rails.root.join('tmp/test/mercurial_repository').to_s
CHAR_1_HEX = "\xc3\x9c"
if File.directory?(REPOSITORY_PATH)