Skip to content

Commit a07a978

Browse files
dolmenrjbs
authored andcommitted
Add a test for Dist::Zilla::Util::AuthorDeps
1 parent 189bd37 commit a07a978

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

t/commands/authordeps.t

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
use strict;
2+
use warnings;
3+
use Test::More 0.88 tests => 1;
4+
5+
use lib 't/lib';
6+
7+
use autodie;
8+
9+
use Dist::Zilla::Util::AuthorDeps;
10+
use Path::Class;
11+
12+
my $authordeps =
13+
Dist::Zilla::Util::AuthorDeps::extract_author_deps(
14+
dir('corpus/dist/AutoPrereqs'),
15+
0
16+
);
17+
18+
is_deeply(
19+
$authordeps,
20+
[ map { +{"Dist::Zilla::Plugin::$_" => 0} } qw<AutoPrereqs ExecDir GatherDir MetaYAML> ],
21+
"authordeps in corpus/dist/AutoPrereqs"
22+
) or diag explain $authordeps;
23+
24+
done_testing;

0 commit comments

Comments
 (0)