X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F15-failures.t;h=296ffc843cfb144abcdd02969daf2090306d6323;hb=84976874ba7cc16560a20dc013ac336fb5aec4b5;hp=c39407cdab01eae4fbba6f4cb0815578bbcfb86d;hpb=8fdce8c3a7141c295beda7a77939df531cb8abcc;p=perl%2Fmodules%2Frgit.git diff --git a/t/15-failures.t b/t/15-failures.t index c39407c..296ffc8 100644 --- a/t/15-failures.t +++ b/t/15-failures.t @@ -6,7 +6,7 @@ use warnings; use Cwd qw/cwd/; use File::Spec::Functions qw/catdir/; -use Test::More tests => 44; +use Test::More tests => 45; use App::Rgit; @@ -89,6 +89,9 @@ $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'); +$res = eval { App::Rgit::Command->new(cmd => 'beer') }; +like($@, qr!Couldn't\s+load\s+App::Rgit::Test::Pub\s*:!, 'App::Rgit::Command->new(cmd => "pub"): croaks'); + use App::Rgit::Config; my $arc = App::Rgit::Config->new(root => 't', git => 't/bin/git');