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:
parent
68fe853477
commit
0833abd9e5
|
@ -228,6 +228,18 @@ begin
|
||||||
assert_equal tm, @adapter.tagmap
|
assert_equal tm, @adapter.tagmap
|
||||||
end
|
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
|
private
|
||||||
|
|
||||||
def test_hgversion_for(hgversion, version)
|
def test_hgversion_for(hgversion, version)
|
||||||
|
|
Loading…
Reference in New Issue