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

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

index b539836ada1e9ad44324d994c23ff2b1adceaf15..548a587c0f9f44e4dafc5b3efebed52c8dfec8f1 100644 (file)
@@ -3,8 +3,7 @@ begin
   require 'mocha'
 
   class CvsAdapterTest < ActiveSupport::TestCase
-
-    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?
     MODULE_NAME = 'test'