]> source.dussan.org Git - redmine.git/commitdiff
scm: mercurial: add asserting first and last changeset to test_fetch_changesets_from_...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 2 Feb 2014 13:08:50 +0000 (13:08 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 2 Feb 2014 13:08:50 +0000 (13:08 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12776 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/repository_mercurial_test.rb

index 654a846b15896b66dc987504cf577202840b42a3..5dd4b7a0a4f7e5f100e7b70fa1c78204207db6b9 100644 (file)
@@ -165,6 +165,10 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
       assert_equal "Initial import.\nThe repository contains 3 files.",
                    rev0.comments
       assert_equal "0885933ad4f6", rev0.scmid
+      first_rev = @repository.changesets.first
+      last_rev  = @repository.changesets.last
+      assert_equal "#{NUM_REV - 1}", first_rev.revision
+      assert_equal "0", last_rev.revision
     end
 
     def test_fetch_changesets_incremental