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