Commit ec957780 authored by tmaruyama's avatar tmaruyama

scm: git: code cleanup "test_branches" of unit lib test

git-svn-id: https://svn.redmine.org/redmine/trunk@8818 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 9ecc7548
......@@ -66,18 +66,22 @@ begin
brs << b
end
assert_equal 4, brs.length
assert_equal 'latin-1-path-encoding', brs[0].to_s
assert_equal '1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127', brs[0].revision
assert_equal brs[0].scmid, brs[0].revision
assert_equal 'master', brs[1].to_s
assert_equal '83ca5fd546063a3c7dc2e568ba3355661a9e2b2c', brs[1].revision
assert_equal brs[1].scmid, brs[1].revision
assert_equal 'test-latin-1', brs[2].to_s
assert_equal '67e7792ce20ccae2e4bb73eed09bb397819c8834', brs[2].revision
assert_equal brs[2].scmid, brs[2].revision
assert_equal 'test_branch', brs[3].to_s
assert_equal 'fba357b886984ee71185ad2065e65fc0417d9b92', brs[3].revision
assert_equal brs[3].scmid, brs[3].revision
br_latin_1_path = brs[-4]
assert_equal 'latin-1-path-encoding', br_latin_1_path.to_s
assert_equal '1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127', br_latin_1_path.revision
assert_equal br_latin_1_path.scmid, br_latin_1_path.revision
br_master = brs[-3]
assert_equal 'master', br_master.to_s
assert_equal '83ca5fd546063a3c7dc2e568ba3355661a9e2b2c', br_master.revision
assert_equal br_master.scmid, br_master.revision
br_latin_1 = brs[-2]
assert_equal 'test-latin-1', br_latin_1.to_s
assert_equal '67e7792ce20ccae2e4bb73eed09bb397819c8834', br_latin_1.revision
assert_equal br_latin_1.scmid, br_latin_1.revision
br_test = brs[-1]
assert_equal 'test_branch', br_test.to_s
assert_equal 'fba357b886984ee71185ad2065e65fc0417d9b92', br_test.revision
assert_equal br_test.scmid, br_test.revision
end
def test_tags
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment