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

test/unit/repository_cvs_test.rb

index 2d475d655f6f7f5191def82049235bfa7f71859f..d10e99a2545a5ebdb0268ba7a6f330c00c1a06b1 100644 (file)
@@ -20,8 +20,7 @@ require 'pp'
 class RepositoryCvsTest < ActiveSupport::TestCase
   fixtures :projects
 
-  # No '..' in the repository path
-  REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/cvs_repository'
+  REPOSITORY_PATH = Rails.root.join('tmp/test/cvs_repository').to_s
   REPOSITORY_PATH.gsub!(/\//, "\\") if Redmine::Platform.mswin?
   # CVS module
   MODULE_NAME    = 'test'