summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb
index 0f4511d5a..4d4e28c0d 100644
--- a/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb
@@ -2,8 +2,7 @@
require File.expand_path('../../../../../../test_helper', __FILE__)
class FilesystemAdapterTest < ActiveSupport::TestCase
-
- REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/filesystem_repository'
+ REPOSITORY_PATH = Rails.root.join('tmp/test/filesystem_repository').to_s
if File.directory?(REPOSITORY_PATH)
def setup