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:
parent
25d642e0ea
commit
8c9be39350
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue