From 28fbc270fae8dd674cace231b782362f73a27290 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 1 Feb 2014 06:08:22 +0000 Subject: [PATCH] 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 --- test/unit/repository_mercurial_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit/repository_mercurial_test.rb b/test/unit/repository_mercurial_test.rb index a9c5da7eb..0729a79d1 100644 --- a/test/unit/repository_mercurial_test.rb +++ b/test/unit/repository_mercurial_test.rb @@ -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 -- 2.39.5