scm: mercurial: unit test for tags at adapter (#1981).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4873 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-02-18 07:15:13 +00:00 committed by Eric Davis
parent 0cdbec47b5
commit c60a9ee5c4
1 changed files with 10 additions and 0 deletions

View File

@ -218,6 +218,16 @@ begin
assert_equal @adapter.cat(path, 2), @adapter.cat(path, '400')
end
def test_tags
assert_equal ['tag_test.00', 'tag-init-revision'], @adapter.tags
end
def test_tagmap
tm = { 'tag_test.00' => '6987191f453a',
'tag-init-revision' => '0885933ad4f6' }
assert_equal tm, @adapter.tagmap
end
private
def test_hgversion_for(hgversion, version)