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)