use strict;
use warnings;
-use Test::More tests => 34;
+use Test::More tests => 38;
use App::Rgit;
$res = eval { App::Rgit::Command->action('beer') };
is($@, '', 'App::Rgit::Command->action("beer"): does not croak');
is($res, 'App::Rgit::Test::Pub', 'App::Rgit::Command->action("beer"): returns valid answer');
+
+use App::Rgit::Config;
+
+my $arc = App::Rgit::Config->new(root => 't', git => 't/bin/git');
+
+$res = eval { $arc->repos };
+is($@, '', '$arc->repos: does not croak');
+is_deeply($res, [ ], '$arc->repos: found nothing');
+
+$res = eval { $arc->repos };
+is($@, '', '$arc->repos: does not croak');
+is_deeply($res, [ ], '$arc->repos: cached ok');