X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F10-base.t;h=72e2bd88caaa110805050ce7a000c20fb3bd10d0;hb=a5f2d9b989d2afcdb4a7b0cc374439627a516656;hp=01ca3ac9cd7358869cbde33b85e2b9c29c7ab716;hpb=fff2b130bbe5c6293252b43d93535419e682e7bf;p=perl%2Fmodules%2FAcme-CPANAuthors-You-re_using.git diff --git a/t/10-base.t b/t/10-base.t index 01ca3ac..72e2bd8 100644 --- a/t/10-base.t +++ b/t/10-base.t @@ -7,8 +7,19 @@ use Test::More; use Acme::CPANAuthors; +local @INC = grep $_ ne '.', @INC; + +diag 'Directories in @INC :'; +diag " $_" for @INC; + my $authors = eval { - local $SIG{__WARN__} = sub { die @_ }; + local $SIG{__WARN__} = sub { + my ($msg) = @_; + if ($msg =~ /^You're_using CPAN Authors are not registered yet: (.*)/s) { + die $1; + } + diag $_ for @_; + }; Acme::CPANAuthors->new("You're_using"); }; @@ -25,4 +36,4 @@ cmp_ok $count, '>', 0, 'there are some authors'; is $authors->name('???'), undef, 'wrong name'; is $authors->name('VPIT'), 'Vincent Pit', 'we should at least have this module'; isnt $authors->name('ISHIGAKI'), undef, 'we should at least have Acme::CPANAuthors\' author'; -isnt $authors->name('LBROCARD'), undef, 'we should at least have Parse::CPAN::* author'; +isnt $authors->name('GAAS'), undef, 'we should at least have LWP\'s author';