Commit 06b75b04 authored by tmaruyama's avatar tmaruyama

scm: cvs: replace RAILS_ROOT to Rails.root in unit model test.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 8b77228f
......@@ -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'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment