summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-06-10 11:12:38 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-06-10 11:12:38 +0000
commitd91cf134b06e18847f17e952e6598c9942055240 (patch)
tree8e0ab01b308862adb3663fa7c32be198710f5ec8
parent407761985e5a63b714dcacd55ea7d7442f2e81db (diff)
downloadredmine-d91cf134b06e18847f17e952e6598c9942055240.tar.gz
redmine-d91cf134b06e18847f17e952e6598c9942055240.zip
scm: filesystem: replace RAILS_ROOT to Rails.root in functional test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6055 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/functional/repositories_filesystem_controller_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/repositories_filesystem_controller_test.rb b/test/functional/repositories_filesystem_controller_test.rb
index ec8332331..bf221346f 100644
--- a/test/functional/repositories_filesystem_controller_test.rb
+++ b/test/functional/repositories_filesystem_controller_test.rb
@@ -22,10 +22,10 @@ require 'repositories_controller'
class RepositoriesController; def rescue_action(e) raise e end; end
class RepositoriesFilesystemControllerTest < 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/filesystem_repository'
+ REPOSITORY_PATH = Rails.root.join('tmp/test/filesystem_repository').to_s
PRJ_ID = 3
def setup