@@ -28,7 +28,7 class RepositoryMercurialTest < ActiveSupport::TestCase | |||||
28 | @repository = Repository::Mercurial.create(:project => @project, :url => REPOSITORY_PATH) |
|
28 | @repository = Repository::Mercurial.create(:project => @project, :url => REPOSITORY_PATH) | |
29 | assert @repository |
|
29 | assert @repository | |
30 | end |
|
30 | end | |
31 |
|
31 | |||
32 | if File.directory?(REPOSITORY_PATH) |
|
32 | if File.directory?(REPOSITORY_PATH) | |
33 | def test_fetch_changesets_from_scratch |
|
33 | def test_fetch_changesets_from_scratch | |
34 | @repository.fetch_changesets |
|
34 | @repository.fetch_changesets | |
@@ -38,7 +38,7 class RepositoryMercurialTest < ActiveSupport::TestCase | |||||
38 | assert_equal "Initial import.\nThe repository contains 3 files.", |
|
38 | assert_equal "Initial import.\nThe repository contains 3 files.", | |
39 | @repository.changesets.find_by_revision('0').comments |
|
39 | @repository.changesets.find_by_revision('0').comments | |
40 | end |
|
40 | end | |
41 |
|
41 | |||
42 | def test_fetch_changesets_incremental |
|
42 | def test_fetch_changesets_incremental | |
43 | @repository.fetch_changesets |
|
43 | @repository.fetch_changesets | |
44 | # Remove changesets with revision > 2 |
|
44 | # Remove changesets with revision > 2 | |
@@ -49,7 +49,7 class RepositoryMercurialTest < ActiveSupport::TestCase | |||||
49 | @repository.fetch_changesets |
|
49 | @repository.fetch_changesets | |
50 | assert_equal 17, @repository.changesets.count |
|
50 | assert_equal 17, @repository.changesets.count | |
51 | end |
|
51 | end | |
52 |
|
52 | |||
53 | def test_isodatesec |
|
53 | def test_isodatesec | |
54 | # Template keyword 'isodatesec' supported in Mercurial 1.0 and higher |
|
54 | # Template keyword 'isodatesec' supported in Mercurial 1.0 and higher | |
55 | if @repository.scm.class.client_version_above?([1, 0]) |
|
55 | if @repository.scm.class.client_version_above?([1, 0]) |
General Comments 0
You need to be logged in to leave comments.
Login now