Add list_tree method to Project, returning an array of
[catagits/Gitalist.git] / t / git / project.t
index ed6ebcb..21f7731 100644 (file)
@@ -22,3 +22,7 @@ is($proj->description, qq/some test repository/, 'repository description loaded'
 isa_ok($proj->last_change, 'DateTime', 'last_change');
 
 is($proj->head_hash, qw/36c6c6708b8360d7023e8a1649c45bcf9b3bd818/, 'head_hash for HEAD is correct');
+
+is(scalar $proj->list_tree, 2, 'expected number of entries in tree');
+isa_ok(($proj->list_tree)[0], 'Gitalist::Git::Object');
+warn( Dumper($proj->list_tree) );