diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-10 07:06:38 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-10 07:06:38 +0000 |
commit | 2ab0bdf695bb8ea1b4cb354b96d091c0012d9b19 (patch) | |
tree | 20149849f8b60cf065d92d7100a0f06564b10b70 | |
parent | 3b5db24269fed4044e55665b161341af8e3b0547 (diff) | |
download | redmine-2ab0bdf695bb8ea1b4cb354b96d091c0012d9b19.tar.gz redmine-2ab0bdf695bb8ea1b4cb354b96d091c0012d9b19.zip |
scm: git: replace RAILS_ROOT to Rails.root in functional test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6043 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/functional/repositories_git_controller_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb index 88d1d8084..06e2428d4 100644 --- a/test/functional/repositories_git_controller_test.rb +++ b/test/functional/repositories_git_controller_test.rb @@ -22,10 +22,10 @@ require 'repositories_controller' class RepositoriesController; def rescue_action(e) raise e end; end class RepositoriesGitControllerTest < ActionController::TestCase - fixtures :projects, :users, :roles, :members, :member_roles, :repositories, :enabled_modules + fixtures :projects, :users, :roles, :members, :member_roles, + :repositories, :enabled_modules - # 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? PRJ_ID = 3 CHAR_1_HEX = "\xc3\x9c" |