-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a7dc575
commit ac9c807
Showing
3 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use Test::More; | ||
|
||
# FILENAME: 01-basic.t | ||
# CREATED: 03/23/14 19:41:51 by Kent Fredric (kentnl) <kentfredric@gmail.com> | ||
# ABSTRACT: Basic interface test | ||
|
||
use Test::DZil qw(simple_ini); | ||
use Dist::Zilla::Util::Test::KENTNL 1.003002 qw( dztest ); | ||
|
||
my $test = dztest(); | ||
my @ini; | ||
|
||
push @ini, [ 'Prereqs', { 'Foo' => 1 } ]; | ||
push @ini, [ 'Prereqs::Soften', { 'module' => 'Foo', 'to_relationship' => 'none', copy_to => 'develop.requires' } ]; | ||
push @ini, ['GatherDir']; | ||
|
||
$test->add_file( 'dist.ini', simple_ini(@ini) ); | ||
$test->add_file( 'lib/E.pm', <<'EO_EPM'); | ||
use strict; | ||
use warnings; | ||
package E; | ||
# ABSTRACT: Fake dist stub | ||
use Moose; | ||
with 'Dist::Zilla::Role::Plugin'; | ||
1; | ||
EO_EPM | ||
|
||
$test->build_ok; | ||
$test->prereqs_deeply( | ||
{ | ||
develop => { requires => { 'Foo' => '1' } }, | ||
} | ||
); | ||
|
||
done_testing; | ||
|