From 406b582a82c81ad8d748dba5594d8a2909d65621 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 10 Jun 2011 12:03:20 +0000 Subject: [PATCH] scm: bazaar: replace RAILS_ROOT to Rails.root in functional test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6058 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/repositories_bazaar_controller_test.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/functional/repositories_bazaar_controller_test.rb b/test/functional/repositories_bazaar_controller_test.rb index 9ad709835..2b3cc79ab 100644 --- a/test/functional/repositories_bazaar_controller_test.rb +++ b/test/functional/repositories_bazaar_controller_test.rb @@ -25,9 +25,7 @@ class RepositoriesBazaarControllerTest < ActionController::TestCase fixtures :projects, :users, :roles, :members, :member_roles, :repositories, :enabled_modules - # No '..' in the repository path - REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + - '/tmp/test/bazaar_repository/trunk' + REPOSITORY_PATH = Rails.root.join('tmp/test/bazaar_repository/trunk').to_s PRJ_ID = 3 def setup -- 2.39.5