scm: mercurial: add check scmid to RepositoryMercurialTest#test_fetch_changesets_from_scratch (#14361)

git-svn-id: http://svn.redmine.org/redmine/trunk@12750 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-02-01 06:08:22 +00:00
parent 5dcecec1bd
commit 28fbc270fa
1 changed files with 3 additions and 1 deletions

View File

@ -91,8 +91,10 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
@project.reload
assert_equal NUM_REV, @repository.changesets.count
assert_equal 46, @repository.filechanges.count
rev0 = @repository.changesets.find_by_revision('0')
assert_equal "Initial import.\nThe repository contains 3 files.",
@repository.changesets.find_by_revision('0').comments
rev0.comments
assert_equal "0885933ad4f6", rev0.scmid
end
def test_fetch_changesets_incremental