]> source.dussan.org Git - redmine.git/commitdiff
scm: mercurial: split latest_changesets tag test with path or not (#14361)
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 2 Feb 2014 07:56:31 +0000 (07:56 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 2 Feb 2014 07:56:31 +0000 (07:56 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12764 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/repository_mercurial_test.rb

index 3028bc061f1d4d67792630310488eb51f10c05cb..9d71aa2948a0ee9da1eae4faf5f20ca6da148c83 100644 (file)
@@ -255,6 +255,13 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
 
       changesets = @repository.latest_changesets('', 'tag_test.00')
       assert_equal %w|5 4 3 2 1 0|, changesets.collect(&:revision)
+    end
+
+    def test_latest_changesets_tag_with_path
+      assert_equal 0, @repository.changesets.count
+      @repository.fetch_changesets
+      @project.reload
+      assert_equal NUM_REV, @repository.changesets.count
 
       changesets = @repository.latest_changesets('sources', 'tag_test.00')
       assert_equal %w|4 3 2 1 0|, changesets.collect(&:revision)