diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-10 12:53:41 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-10 12:53:41 +0000 |
commit | ee2418f07618d2d5914f109a06611cc1ee022c27 (patch) | |
tree | 9c77f65a127674999131470ce85dcb7d95266a47 /test | |
parent | 9b09aad1d5a42c1b4abfd3875258197eb7585171 (diff) | |
download | redmine-ee2418f07618d2d5914f109a06611cc1ee022c27.tar.gz redmine-ee2418f07618d2d5914f109a06611cc1ee022c27.zip |
scm: cvs: replace RAILS_ROOT to Rails.root in unit model test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6060 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/repository_cvs_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/unit/repository_cvs_test.rb b/test/unit/repository_cvs_test.rb index 2d475d655..d10e99a25 100644 --- a/test/unit/repository_cvs_test.rb +++ b/test/unit/repository_cvs_test.rb @@ -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' |