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