From: Dan Brook Date: Mon, 1 Nov 2010 22:42:05 +0000 (+0000) Subject: Make FromDirectoryRecursive operate in bootstrap env. X-Git-Tag: 0.002007~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FGitalist.git;a=commitdiff_plain;h=541f51531253df0fd7a0d0d03e2b736158feb167 Make FromDirectoryRecursive operate in bootstrap env. Also fixed an assertion in t/model_collectionofrepos.t to reflect the 2 new repos that have been added. --- diff --git a/t/02git_CollectionOfRepositories_FromDirectoryRecursive.t b/t/02git_CollectionOfRepositories_FromDirectoryRecursive.t index 24c97f7..2afd34c 100644 --- a/t/02git_CollectionOfRepositories_FromDirectoryRecursive.t +++ b/t/02git_CollectionOfRepositories_FromDirectoryRecursive.t @@ -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 $@; } diff --git a/t/model_collectionofrepos.t b/t/model_collectionofrepos.t index d47f7e1..1151b65 100644 --- a/t/model_collectionofrepos.t +++ b/t/model_collectionofrepos.t @@ -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'; } {