From: Toshi MARUYAMA Date: Fri, 10 Jun 2011 12:03:20 +0000 (+0000) Subject: scm: bazaar: replace RAILS_ROOT to Rails.root in functional test. X-Git-Tag: 1.3.0~1829 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=406b582a82c81ad8d748dba5594d8a2909d65621;p=redmine.git 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 --- 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