summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_mercurial_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-02 13:08:50 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-02 13:08:50 +0000
commit85f15f694a6748e546bdabd174f9af9dd8703c7c (patch)
tree80bbf7efa082807119162f2b0888c04ab34eeb79 /test/unit/repository_mercurial_test.rb
parentf9e7c247331d6fb7022ad72bb2efcbb63517e8ca (diff)
downloadredmine-85f15f694a6748e546bdabd174f9af9dd8703c7c.tar.gz
redmine-85f15f694a6748e546bdabd174f9af9dd8703c7c.zip
scm: mercurial: add asserting first and last changeset to test_fetch_changesets_from_scratch (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12776 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_mercurial_test.rb')
-rw-r--r--test/unit/repository_mercurial_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/repository_mercurial_test.rb b/test/unit/repository_mercurial_test.rb
index 654a846b1..5dd4b7a0a 100644
--- a/test/unit/repository_mercurial_test.rb
+++ b/test/unit/repository_mercurial_test.rb
@@ -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