Dist-Zilla-BeLike-CSJEWELL

changeset 36:999dd0f76584

Fixing compile test (using Test::UseAllModules)
author Curtis Jewell <csjewell@cpan.org>
date Thu Aug 19 02:20:45 2010 -0600 (2010-08-19)
parents 6b6f1f9060fb
children 6b3c1474dade
files Build.PL t/compile.t
line diff
     1.1 --- a/Build.PL	Thu Aug 19 02:14:50 2010 -0600
     1.2 +++ b/Build.PL	Thu Aug 19 02:20:45 2010 -0600
     1.3 @@ -107,7 +107,8 @@
     1.4  		'Test::Portability::Files'            => '0.05',
     1.5      },
     1.6  	build_requires => {
     1.7 -        'Test::More'                          => '0.88',
     1.8 +		'Test::More'                          => '0.88',
     1.9 +		'Test::UseAllModules'                 => '0.12',
    1.10  	},
    1.11      meta_merge     => {
    1.12          resources => {
     2.1 --- a/t/compile.t	Thu Aug 19 02:14:50 2010 -0600
     2.2 +++ b/t/compile.t	Thu Aug 19 02:20:45 2010 -0600
     2.3 @@ -1,12 +1,15 @@
     2.4 -use Test::More tests => 2;
     2.5 +use Test::More;
     2.6 +use Test::UseAllModules;
     2.7  
     2.8  BEGIN {
     2.9  	use strict;
    2.10  	$^W = 1;
    2.11  	$| = 1;
    2.12  
    2.13 -    ok(($] > 5.008000), 'Perl version acceptable') or BAIL_OUT ('Perl version unacceptably old.');
    2.14 -    use_ok( 'Dist::Zilla::CSJEWELL' );
    2.15 -    diag( "Testing Dist::Zilla::CSJEWELL $Dist::Zilla::CSJEWELL::VERSION" );
    2.16 +	plan tests => Test::UseAllModules::_get_module_list() + 1;
    2.17 +
    2.18 +	ok(($] > 5.008000), 'Perl version acceptable') or BAIL_OUT ('Perl version unacceptably old.');
    2.19 +	all_uses_ok();
    2.20 +	diag( "Testing Dist::Zilla::BeLike::CSJEWELL $Dist::Zilla::BeLike::CSJEWELL::VERSION" );
    2.21  }
    2.22