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