@@ -79,8 +79,10 class RepositoryMercurialTest < ActiveSupport::TestCase | |||||
79 | def test_isodatesec |
|
79 | def test_isodatesec | |
80 | # Template keyword 'isodatesec' supported in Mercurial 1.0 and higher |
|
80 | # Template keyword 'isodatesec' supported in Mercurial 1.0 and higher | |
81 | if @repository.scm.class.client_version_above?([1, 0]) |
|
81 | if @repository.scm.class.client_version_above?([1, 0]) | |
|
82 | assert_equal 0, @repository.changesets.count | |||
82 | @repository.fetch_changesets |
|
83 | @repository.fetch_changesets | |
83 |
@ |
|
84 | @project.reload | |
|
85 | assert_equal NUM_REV, @repository.changesets.count | |||
84 | rev0_committed_on = Time.gm(2007, 12, 14, 9, 22, 52) |
|
86 | rev0_committed_on = Time.gm(2007, 12, 14, 9, 22, 52) | |
85 | assert_equal @repository.changesets.find_by_revision('0').committed_on, rev0_committed_on |
|
87 | assert_equal @repository.changesets.find_by_revision('0').committed_on, rev0_committed_on | |
86 | end |
|
88 | end |
General Comments 0
You need to be logged in to leave comments.
Login now