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

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

index 0f4511d5a0feec8eb388ef0693063ec7e50b99ae..4d4e28c0d6202ea39c020b7541747b2eae5f269d 100644 (file)
@@ -2,8 +2,7 @@
 require File.expand_path('../../../../../../test_helper', __FILE__)
 
 class FilesystemAdapterTest < ActiveSupport::TestCase
-
-  REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/filesystem_repository'
+  REPOSITORY_PATH = Rails.root.join('tmp/test/filesystem_repository').to_s
 
   if File.directory?(REPOSITORY_PATH)
     def setup