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

test/functional/repositories_bazaar_controller_test.rb

index 9ad709835d77323c0792c75828748a6ffb41fbc1..2b3cc79ab1a736f963eda05d35f6f0639aec65aa 100644 (file)
@@ -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