diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-10 12:02:44 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-10 12:02:44 +0000 |
commit | fa93c2b2bb955e0c0e6550c9dba91065718b21de (patch) | |
tree | d575592c7187ba9bde71a1f815d8b78dca8a6105 /test/unit/repository_bazaar_test.rb | |
parent | 01656ff590cc6965966f1a1ec34c3610289d3b9e (diff) | |
download | redmine-fa93c2b2bb955e0c0e6550c9dba91065718b21de.tar.gz redmine-fa93c2b2bb955e0c0e6550c9dba91065718b21de.zip |
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
Diffstat (limited to 'test/unit/repository_bazaar_test.rb')
-rw-r--r-- | test/unit/repository_bazaar_test.rb | 4 |
1 files changed, 1 insertions, 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 |