]> source.dussan.org Git - redmine.git/commitdiff
scm: git: replace RAILS_ROOT to Rails.root in unit adapter test.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 10 Jun 2011 03:30:19 +0000 (03:30 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 10 Jun 2011 03:30:19 +0000 (03:30 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6038 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/scm/adapters/git_adapter_test.rb

index 2c7fd89c38369d3263c8cde1dd81f98cf4a295cd..caab4b69aee2c165eb11c5b2d531ec4d41e7dd01 100644 (file)
@@ -8,7 +8,7 @@ begin
   require 'mocha'
 
   class GitAdapterTest < ActiveSupport::TestCase
-    REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/git_repository'
+    REPOSITORY_PATH = Rails.root.join('tmp/test/git_repository').to_s
 
     FELIX_UTF8 = "Felix Schäfer"
     FELIX_HEX  = "Felix Sch\xC3\xA4fer"