##// END OF EJS Templates
scm: darcs: replace RAILS_ROOT to Rails.root in unit model test....
Toshi MARUYAMA -
r5928:ea9847bb37c7
parent child
Show More
@@ -20,14 +20,15 require File.expand_path('../../test_helper', __FILE__)
20 20 class RepositoryDarcsTest < ActiveSupport::TestCase
21 21 fixtures :projects
22 22
23 # No '..' in the repository path
24 REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/darcs_repository'
23 REPOSITORY_PATH = Rails.root.join('tmp/test/darcs_repository').to_s
25 24
26 25 def setup
27 26 @project = Project.find(3)
28 27 @repository = Repository::Darcs.create(
29 :project => @project, :url => REPOSITORY_PATH,
30 :log_encoding => 'UTF-8')
28 :project => @project,
29 :url => REPOSITORY_PATH,
30 :log_encoding => 'UTF-8'
31 )
31 32 assert @repository
32 33 end
33 34
General Comments 0
You need to be logged in to leave comments. Login now