summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-06-10 12:03:20 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-06-10 12:03:20 +0000
commit406b582a82c81ad8d748dba5594d8a2909d65621 (patch)
tree4031be02a4ea8677c13d293b4a36d33be0da6a46 /test
parentfa93c2b2bb955e0c0e6550c9dba91065718b21de (diff)
downloadredmine-406b582a82c81ad8d748dba5594d8a2909d65621.tar.gz
redmine-406b582a82c81ad8d748dba5594d8a2909d65621.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/functional/repositories_bazaar_controller_test.rb4
1 files changed, 1 insertions, 3 deletions
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