From fa93c2b2bb955e0c0e6550c9dba91065718b21de Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 10 Jun 2011 12:02:44 +0000 Subject: [PATCH] scm: bazaar: replace RAILS_ROOT to Rails.root in unit model test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6057 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/repository_bazaar_test.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/unit/repository_bazaar_test.rb b/test/unit/repository_bazaar_test.rb index 08b69b89d..6b1e2f5de 100644 --- a/test/unit/repository_bazaar_test.rb +++ b/test/unit/repository_bazaar_test.rb @@ -20,9 +20,7 @@ require File.expand_path('../../test_helper', __FILE__) class RepositoryBazaarTest < ActiveSupport::TestCase fixtures :projects - # 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 REPOSITORY_PATH.gsub!(/\/+/, '/') def setup -- 2.39.5