@@ -20,13 +20,10 require File.expand_path('../../test_helper', __FILE__) | |||
|
20 | 20 | class RepositoryMercurialTest < ActiveSupport::TestCase |
|
21 | 21 | fixtures :projects |
|
22 | 22 | |
|
23 | # No '..' in the repository path | |
|
24 | REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/mercurial_repository' | |
|
25 | ||
|
23 | REPOSITORY_PATH = Rails.root.join('tmp/test/mercurial_repository').to_s | |
|
26 | 24 | CHAR_1_HEX = "\xc3\x9c" |
|
27 | 25 | |
|
28 | 26 | if File.directory?(REPOSITORY_PATH) |
|
29 | ||
|
30 | 27 | def setup |
|
31 | 28 | klass = Repository::Mercurial |
|
32 | 29 | assert_equal "Mercurial", klass.scm_name |
@@ -34,7 +31,7 class RepositoryMercurialTest < ActiveSupport::TestCase | |||
|
34 | 31 | assert_not_equal "", klass.scm_command |
|
35 | 32 | assert_equal true, klass.scm_available |
|
36 | 33 | |
|
37 | @project = Project.find(3) | |
|
34 | @project = Project.find(3) | |
|
38 | 35 | @repository = Repository::Mercurial.create( |
|
39 | 36 | :project => @project, |
|
40 | 37 | :url => REPOSITORY_PATH, |
General Comments 0
You need to be logged in to leave comments.
Login now