summaryrefslogtreecommitdiff
path: root/cpan/Module-Build/t/metadata.t
diff options
context:
space:
mode:
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>2012-02-24 21:42:41 +0000
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>2012-02-24 22:42:22 +0000
commit1f629e57df116eb70c42f5e4306c2a1eb93b4c93 (patch)
treed97de90e095b8736885a05aba3e74b825423d7ab /cpan/Module-Build/t/metadata.t
parent236cbe8d7a6747fb6144c93dd767895f8acffd00 (diff)
downloadperl-smoke-me/module-build.tar.gz
Update Module-Build to CPAN version 0.40smoke-me/module-build
[DELTA] 0.40 - Fri Feb 24 18:47:48 CET 2012 - Released 0.39_02 as 0.40 without any code changes 0.39_02 - Thu Feb 17 00:33:18 MET 2012 [BUG FIXES] - Fixed bug where modules without $VERSION might have a version of '0' listed in 'provides' metadata, which will be rejected by PAUSE [David Golden, reported by Christopher Fields] - Fixed bug in PodParser to allow numerals in module names [Tokuhirom] - Fixed bug where giving arguments twice led to them becoming arrays, resulting in install paths like "ARRAY(0xdeadbeef)/lib/Foo.pm" [Leon Timmermans] [DOCUMENTATION] - Fixed deviance from alphabetical order in documentation of constructor parameters. [Eric Brine] - Add documentation for configure_requires constructor parameter. [Eric Brine] - Change some of the docs' language describing relationship to MakeMaker. [Ken Williams] [OTHER] - List Perl-Toolchain-Gang repo as official repo
Diffstat (limited to 'cpan/Module-Build/t/metadata.t')
-rw-r--r--cpan/Module-Build/t/metadata.t15
1 files changed, 14 insertions, 1 deletions
diff --git a/cpan/Module-Build/t/metadata.t b/cpan/Module-Build/t/metadata.t
index a495f157b4..4401e1a62d 100644
--- a/cpan/Module-Build/t/metadata.t
+++ b/cpan/Module-Build/t/metadata.t
@@ -2,7 +2,7 @@
use strict;
use lib 't/lib';
-use MBTest tests => 52;
+use MBTest tests => 53;
blib_load('Module::Build');
blib_load('Module::Build::ConfigData');
@@ -296,7 +296,20 @@ is_deeply($provides,
version => '1.23' }}); # XXX should be 2.34?
like( $err, qr/already declared/, ' with conflicting versions reported' );
+# Missing version should not show up in provides as version "0"
+$dist->change_file( 'lib/Simple.pm', <<'---' );
+package Foo;
+$VERSION = undef;
+1;
+---
+$dist->regen( clean => 1 );
+$err = stderr_of( sub { $mb = new_build() } );
+$err = stderr_of( sub { $provides = $mb->find_dist_packages } );
+is_deeply($provides,
+ {'Foo' => { file => $simple_file } },
+ "undef \$VERSION is omitted from 'provides'"
+);
############################## Multiple Modules