diff --git a/test/unit/repository_filesystem_test.rb b/test/unit/repository_filesystem_test.rb index 03a6edea4..613ccdaa5 100644 --- a/test/unit/repository_filesystem_test.rb +++ b/test/unit/repository_filesystem_test.rb @@ -20,8 +20,7 @@ require File.expand_path('../../test_helper', __FILE__) class RepositoryFilesystemTest < ActiveSupport::TestCase fixtures :projects - # No '..' in the repository path - REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/filesystem_repository' + REPOSITORY_PATH = Rails.root.join('tmp/test/filesystem_repository').to_s def setup @project = Project.find(3)