Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
fix this test so it can be run outside of "dzil build"
Browse files Browse the repository at this point in the history
  • Loading branch information
karenetheridge committed Mar 4, 2014
1 parent f4aada4 commit 610c125
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion t/file.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use strict;
use warnings;
use Test::More;
use Test::DZil;
use File::pushd 'pushd';
use Test::Script 1.05;

my $tzil
Expand All @@ -14,6 +15,7 @@ my $tzil
'source/lib/Foo.pm' => "package Foo;\n1;\n",
'source/dist.ini' => simple_ini(
[ GatherDir => ],
[ MakeMaker => ],
['Test::PodSpelling']
)
}
Expand All @@ -33,6 +35,11 @@ my $fn

ok ( -e $fn, 'test file exists');

script_compiles( '' . $fn->relative, 'check test compiles' );
{
my $wd = pushd $tzil->tempdir->subdir('build');
$tzil->plugin_named('MakeMaker')->build;

script_compiles( '' . $fn->relative, 'check test compiles' );
}

done_testing;

0 comments on commit 610c125

Please sign in to comment.