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

test/unit/repository_filesystem_test.rb

index 03a6edea4298b38d08956dcaad372065e10dbbd9..613ccdaa5ae0ec008066195f25e614c1607bfc87 100644 (file)
@@ -20,8 +20,7 @@ require File.expand_path('../../test_helper', __FILE__)
 class RepositoryFilesystemTest < ActiveSupport::TestCase
   fixtures :projects
 
-  # No '..' in the repository path
-  REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/filesystem_repository'
+  REPOSITORY_PATH = Rails.root.join('tmp/test/filesystem_repository').to_s
 
   def setup
     @project = Project.find(3)