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
parent 25d642e0ea
commit 8c9be39350
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') assert_equal @adapter.cat(path, 2), @adapter.cat(path, '400')
end 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 private
def test_hgversion_for(hgversion, version) def test_hgversion_for(hgversion, version)