diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-03-14 11:15:23 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-03-14 11:15:23 +0000 |
commit | 59c791b2e1801ce9a4061aac362e4161cc8ea50a (patch) | |
tree | cdff65c00cf9a92129fb62df2d5d7c89f38acef3 /test/unit/repository_mercurial_test.rb | |
parent | 081a90701a1bc91d20b7b1fdb704a167a9b22c51 (diff) | |
download | redmine-59c791b2e1801ce9a4061aac362e4161cc8ea50a.tar.gz redmine-59c791b2e1801ce9a4061aac362e4161cc8ea50a.zip |
scm: mercurial: add latest changesets supporting tag test in unit model test (#1981).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5126 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_mercurial_test.rb')
-rw-r--r-- | test/unit/repository_mercurial_test.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/unit/repository_mercurial_test.rb b/test/unit/repository_mercurial_test.rb index 1421c1aa0..5609ceb72 100644 --- a/test/unit/repository_mercurial_test.rb +++ b/test/unit/repository_mercurial_test.rb @@ -136,6 +136,19 @@ class RepositoryMercurialTest < ActiveSupport::TestCase changesets = @repository.latest_changesets(path, '12', 1) assert_equal %w|12|, changesets.collect(&:revision) + + # tag + changesets = @repository.latest_changesets('', 'tag_test.00') + assert_equal %w|5 4 3 2 1 0|, changesets.collect(&:revision) + + changesets = @repository.latest_changesets('', 'tag_test.00', 2) + assert_equal %w|5 4|, changesets.collect(&:revision) + + changesets = @repository.latest_changesets('sources', 'tag_test.00') + assert_equal %w|4 3 2 1 0|, changesets.collect(&:revision) + + changesets = @repository.latest_changesets('sources', 'tag_test.00', 2) + assert_equal %w|4 3|, changesets.collect(&:revision) end def test_copied_files |