Skip to content

Commit

Permalink
Use Test::Requires
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed May 17, 2011
1 parent 2fba232 commit 1d877ac
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions xt/release/pod-coverage.t
Expand Up @@ -3,14 +3,13 @@ use warnings;

use Test::More;


plan skip_all => 'This test is only run for the module author'
unless -d '.svn' || $ENV{IS_MAINTAINER};

eval "use Test::Pod::Coverage 1.04";
plan skip_all => "Test::Pod::Coverage 1.04 required for testing POD coverage"
if $@;

all_pod_coverage_ok( { coverage_class => 'Pod::Coverage::Moose',
trustme => [ qr/^(?:new|BUILD|type)$/ ],
} );
use Test::Requires {
'Test::Pod::Coverage' => '1.04',
};

all_pod_coverage_ok(
{
coverage_class => 'Pod::Coverage::Moose',
trustme => [qr/^(?:new|BUILD|type)$/],
}
);

0 comments on commit 1d877ac

Please sign in to comment.