Make FromDirectoryRecursive operate in bootstrap env.
Dan Brook [Mon, 1 Nov 2010 22:42:05 +0000 (22:42 +0000)]
Also fixed an assertion in t/model_collectionofrepos.t to reflect the
2 new repos that have been added.

t/02git_CollectionOfRepositories_FromDirectoryRecursive.t
t/model_collectionofrepos.t

index 24c97f7..2afd34c 100644 (file)
@@ -1,6 +1,6 @@
 use FindBin qw/$Bin/;
 BEGIN {
-    my $env = "$FindBin::Bin/script/env";
+    my $env = "$FindBin::Bin/../script/env";
     if (-r $env) {
         do $env or die $@;
     }
index d47f7e1..1151b65 100644 (file)
@@ -95,7 +95,7 @@ throws_ok { Gitalist::Model::CollectionOfRepos->COMPONENT($ctx_gen->(), { repos
 
 {
     my $i = test_with_config({ repo_dir => "$FindBin::Bin/lib/repositories"});
-    is scalar($i->repositories->flatten), 3, 'Found 3 repos';
+    is scalar($i->repositories->flatten), 5, 'Found 5 repos';
 }
 
 {