scm: mercurial: unit test for named branches at adapter (#7246).

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

View File

@ -228,6 +228,18 @@ begin
assert_equal tm, @adapter.tagmap
end
def test_branches
assert_equal ['default', 'branch (1)[2]&,%.-3_4', 'test-branch-00'],
@adapter.branches
end
def test_branchmap
bm = { 'default' => '4cddb4e45f52',
'branch (1)[2]&,%.-3_4' => '933ca60293d7',
'test-branch-00' => '3a330eb32958' }
assert_equal bm, @adapter.branchmap
end
private
def test_hgversion_for(hgversion, version)