Skip to content

Commit

Permalink
Use Path::Class in new test for good measure
Browse files Browse the repository at this point in the history
  • Loading branch information
rwstauner committed Nov 10, 2012
1 parent d9f6028 commit 3ca5d9b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions t/module_info.t
Expand Up @@ -2,12 +2,13 @@ use strict;
use warnings;
use Test::More 0.96;
use Test::Fatal;
use Path::Class;

my $mod = 'Dist::Metadata';
eval "require $mod" or die $@;

test_module_info(
[file => 'corpus/Dist-Metadata-Test-NoMetaFile-0.1.tar.gz'],
[file => file(qw(corpus Dist-Metadata-Test-NoMetaFile-0.1.tar.gz))->stringify],
{
'Dist::Metadata::Test::NoMetaFile' => {
file => 'lib/Dist/Metadata/Test/NoMetaFile.pm',
Expand All @@ -27,7 +28,7 @@ test_module_info(
);

test_module_info(
[file => 'corpus/Dist-Metadata-Test-MetaFile-2.2.zip'],
[file => file(qw(corpus Dist-Metadata-Test-MetaFile-2.2.zip))->stringify],
{
'Dist::Metadata::Test::MetaFile' => {
file => 'lib/Dist/Metadata/Test/MetaFile.pm',
Expand Down

0 comments on commit 3ca5d9b

Please sign in to comment.