GitLab ist wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht erreichbar.

Commit 5f7eabdd authored by tmaruyama's avatar tmaruyama

scm: bazaar: add revisions test to unit lib test

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent ac236e03
......@@ -151,6 +151,22 @@ begin
assert_nil @adapter.entries(nil, 12345678)
def test_revisions
revisions = @adapter.revisions(nil, 4, 2)
assert_equal 3, revisions.size
assert_equal 2, revisions[2].identifier
assert_equal '', revisions[2].scmid
assert_equal 4, revisions[0].identifier
assert_equal '', revisions[0].scmid
assert_equal 2, revisions[0].paths.size
assert_equal 'D', revisions[0].paths[0][:action]
assert_equal '/doc-deleted.txt', revisions[0].paths[0][:path]
assert_equal 'docdeleted.txt-20071203175320-iwwj561ojuubs3gt-1', revisions[0].paths[0][:revision]
assert_equal 'M', revisions[0].paths[1][:action]
assert_equal '/directory/doc-ls.txt', revisions[0].paths[1][:path]
assert_equal 'docls.txt-20071203175005-a3hyc3mn0shl7cgu-1', revisions[0].paths[1][:revision]
def test_revisions_path_invalid
assert_nil @adapter.revisions('invalid')
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