summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_mercurial_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-02 07:56:31 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-02 07:56:31 +0000
commit8c96db6e53e5d2e1f512eeefde6d90894afcbeb1 (patch)
treec273ae093153caedfc40f5052e6de9e7e1b5d240 /test/unit/repository_mercurial_test.rb
parent79e73095e5a4e3b8dd2f3133c154bcfff4754cde (diff)
downloadredmine-8c96db6e53e5d2e1f512eeefde6d90894afcbeb1.tar.gz
redmine-8c96db6e53e5d2e1f512eeefde6d90894afcbeb1.zip
scm: mercurial: split latest_changesets tag test with path or not (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12764 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_mercurial_test.rb')
-rw-r--r--test/unit/repository_mercurial_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/repository_mercurial_test.rb b/test/unit/repository_mercurial_test.rb
index 3028bc061..9d71aa294 100644
--- a/test/unit/repository_mercurial_test.rb
+++ b/test/unit/repository_mercurial_test.rb
@@ -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)