diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-10 07:06:59 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-10 07:06:59 +0000 |
commit | 8ca1d90980f8e8ed7728078826df7fcd7fb3b462 (patch) | |
tree | 67bcd461695f86076f5b9f10db6fcca98b3132fb /test | |
parent | 2ab0bdf695bb8ea1b4cb354b96d091c0012d9b19 (diff) | |
download | redmine-8ca1d90980f8e8ed7728078826df7fcd7fb3b462.tar.gz redmine-8ca1d90980f8e8ed7728078826df7fcd7fb3b462.zip |
scm: git: replace RAILS_ROOT to Rails.root in unit model test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6044 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/repository_git_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/unit/repository_git_test.rb b/test/unit/repository_git_test.rb index e85941384..7cdcfbc2b 100644 --- a/test/unit/repository_git_test.rb +++ b/test/unit/repository_git_test.rb @@ -20,8 +20,7 @@ require File.expand_path('../../test_helper', __FILE__) class RepositoryGitTest < ActiveSupport::TestCase fixtures :projects, :repositories, :enabled_modules, :users, :roles - # No '..' in the repository path - REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/git_repository' + REPOSITORY_PATH = Rails.root.join('tmp/test/git_repository').to_s REPOSITORY_PATH.gsub!(/\//, "\\") if Redmine::Platform.mswin? FELIX_HEX = "Felix Sch\xC3\xA4fer" |