]> source.dussan.org Git - redmine.git/commitdiff
scm: bazaar: replace RAILS_ROOT to Rails.root in unit model test.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 10 Jun 2011 12:02:44 +0000 (12:02 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 10 Jun 2011 12:02:44 +0000 (12:02 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6057 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/repository_bazaar_test.rb

index 08b69b89d3bc58400caa87501c45a769a4e339ef..6b1e2f5de6da7112e54b2d116f2c63e43561a54d 100644 (file)
@@ -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