Skip to content

Commit

Permalink
Fixed test template
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanwills committed Jul 6, 2015
1 parent 53700c8 commit 1517301
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions templates/perl/test/00-load.t
Expand Up @@ -4,18 +4,10 @@
use strict;
use warnings;
use Test::More;
use Path::Class;
use Test::Warnings;

my $lib = file($0)->parent->parent->subdir('lib');
my @files = $lib->children;

while ( my $file = shift @files ) {
if ( -d $file ) {
push @files, $file->children;
}
elsif ( $file =~ /[.]pm$/ ) {
require_ok $file;
}
BEGIN {
use_ok( '[% module %]' );
}

diag( "Testing [% module %] $[% module %]::VERSION, Perl $], $^X" );
Expand Down

0 comments on commit 1517301

Please sign in to comment.