More DirectoryRecursive testing
Jose Luis Martinez [Wed, 9 Mar 2011 19:05:33 +0000 (20:05 +0100)]
Make sure that two repos with the same name are retrievable, and are
different.

t/02git_CollectionOfRepositories_FromDirectoryRecursive.t
t/lib/repositories/recursive/goingdeeper/scratch.git/description
t/lib/repositories/recursive/goingdeeper2/scratch.git/description

index 6c2a262..458dae8 100644 (file)
@@ -45,6 +45,12 @@ isa_ok($repository, 'Gitalist::Git::Repository');
 
 $repository = $repo->get_repository( "recursive/goingdeeper/scratch.git" );
 isa_ok($repository, 'Gitalist::Git::Repository');
+cmp_ok($repository->description, 'eq', 'goingdeeper/scratch.git repo', 'Got the right repo');
+
+$repository = $repo->get_repository( "recursive/goingdeeper2/scratch.git" );
+isa_ok($repository, 'Gitalist::Git::Repository');
+cmp_ok($repository->description, 'eq', 'goingdeeper2/scratch.git repo', 'Got the right repo');
+
 
 # check for bug where get_repository blew up if repo_dir
 # was a relative path