6 use Test::More tests => 2;
10 use Acme::CPANAuthors;
12 local @INC = grep $_ ne '.', @INC;
15 local $test_loaded = 0;
18 local $SIG{__WARN__} = sub {
19 my $msg = join "\n", @_;
20 if ($msg =~ /cabbage/) {
26 eval { Acme::CPANAuthors->new("You're_using") };
30 is $test_loaded, 1, 'naughty module was actually loaded';
31 is $err, '', 'naughty module did not make us croak';