diff options
Diffstat (limited to 'test')
-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 |