diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-10 12:02:10 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-10 12:02:10 +0000 |
commit | 01656ff590cc6965966f1a1ec34c3610289d3b9e (patch) | |
tree | bce0e09bf3fbaf0700419d3f44792ffae3265cde | |
parent | d91cf134b06e18847f17e952e6598c9942055240 (diff) | |
download | redmine-01656ff590cc6965966f1a1ec34c3610289d3b9e.tar.gz redmine-01656ff590cc6965966f1a1ec34c3610289d3b9e.zip |
scm: bazaar: replace RAILS_ROOT to Rails.root in unit adapter test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6056 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb index 41901375d..b37083170 100644 --- a/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb @@ -3,9 +3,7 @@ begin require 'mocha' class BazaarAdapterTest < ActiveSupport::TestCase - - REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + - '/tmp/test/bazaar_repository' + REPOSITORY_PATH = Rails.root.join('tmp/test/bazaar_repository').to_s REPOSITORY_PATH.gsub!(/\/+/, '/') if File.directory?(REPOSITORY_PATH) |