Commit 25ab6749 authored by tmaruyama's avatar tmaruyama
Browse files

scm: git: add tests for branch entries() in unit adapter test.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 47e20277
......@@ -155,6 +155,22 @@ begin
assert_equal, 12, 14, 9, 24, 1), readme.lastrev.time
def test_entries_branch
entries1 = @adapter.entries(nil, 'test_branch')
assert entries1
assert_equal 4, entries1.size
assert_equal 'sources', entries1[1].name
assert_equal 'sources', entries1[1].path
assert_equal 'dir', entries1[1].kind
readme = entries1[2]
assert_equal 'README',
assert_equal 'README', readme.path
assert_equal 'file', readme.kind
assert_equal 159, readme.size
assert_equal '713f4944648826f558cf548222f813dabe7cbb04', readme.lastrev.identifier
assert_equal, 6, 19, 4, 37, 23), readme.lastrev.time
def test_scm_version_for(scm_command_version, version)
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