##// END OF EJS Templates
scm: git: replace RAILS_ROOT to Rails.root in unit model test....
Toshi MARUYAMA -
r5924:8ca1d90980f8
parent child
Show More
@@ -20,8 +20,7 require File.expand_path('../../test_helper', __FILE__)
20 class RepositoryGitTest < ActiveSupport::TestCase
20 class RepositoryGitTest < ActiveSupport::TestCase
21 fixtures :projects, :repositories, :enabled_modules, :users, :roles
21 fixtures :projects, :repositories, :enabled_modules, :users, :roles
22
22
23 # No '..' in the repository path
23 REPOSITORY_PATH = Rails.root.join('tmp/test/git_repository').to_s
24 REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/git_repository'
25 REPOSITORY_PATH.gsub!(/\//, "\\") if Redmine::Platform.mswin?
24 REPOSITORY_PATH.gsub!(/\//, "\\") if Redmine::Platform.mswin?
26
25
27 FELIX_HEX = "Felix Sch\xC3\xA4fer"
26 FELIX_HEX = "Felix Sch\xC3\xA4fer"
General Comments 0
You need to be logged in to leave comments. Login now