|
BEGIN {
my $package = "Dist::Zilla::Plugin::MetaProvides::Package" ;
eval "require $package; 1" or plan skip_all => "Requires $package" ;
}
my $t = dztest();
my $package = 'BadName' ;
$t ->add_file(
'dist.ini' => simple_ini(
[ 'GatherDir' ],
[ 'MetaProvides::Package' ],
[ 'Prereqs' , { $package => 0 } ],
[ 'RemovePrereqs::Provided' ],
)
);
$t ->add_file( 'lib/BadName.pm' => <<"EOF" );
package ${package};
our \$VERSION = 0.001;
1;
EOF
$t ->build_ok;
$t ->prereqs_deeply( {} );
note explain $t ->builder->log_messages;
done_testing;
|