summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-06-10 10:12:19 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-06-10 10:12:19 +0000
commit5538d8417193ceb79e87ee7de22ddda867a7d756 (patch)
treeb50ad231951c844bac6b931e7333d7b9722208ec
parentea9847bb37c759e884fa83bf6ff5bcf77878a682 (diff)
downloadredmine-5538d8417193ceb79e87ee7de22ddda867a7d756.tar.gz
redmine-5538d8417193ceb79e87ee7de22ddda867a7d756.zip
scm: darcs: replace RAILS_ROOT to Rails.root in functional test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6049 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/functional/repositories_darcs_controller_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/repositories_darcs_controller_test.rb b/test/functional/repositories_darcs_controller_test.rb
index 5ad37b014..706a5f879 100644
--- a/test/functional/repositories_darcs_controller_test.rb
+++ b/test/functional/repositories_darcs_controller_test.rb
@@ -22,10 +22,10 @@ require 'repositories_controller'
class RepositoriesController; def rescue_action(e) raise e end; end
class RepositoriesDarcsControllerTest < 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/darcs_repository'
+ REPOSITORY_PATH = Rails.root.join('tmp/test/darcs_repository').to_s
PRJ_ID = 3
def setup