Skip to content

Commit

Permalink
Merge pull request #50 from charsbar/fix_feature_stringification
Browse files Browse the repository at this point in the history
Fix feature stringification
  • Loading branch information
miyagawa committed Apr 26, 2018
2 parents 7804009 + 09408d4 commit 71a7b98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Module/CPANfile.pm
Expand Up @@ -160,7 +160,7 @@ sub to_string {

for my $feature ($self->features) {
$code .= "feature @{[ _d $feature->{identifier} ]}, @{[ _d $feature->{description} ]} => sub {\n";
$code .= $self->_dump_prereqs($feature->{spec}, $include_empty, 4);
$code .= $self->_dump_prereqs($feature->{prereqs}->as_string_hash, $include_empty, 4);
$code .= "};\n\n";
}

Expand Down
1 change: 1 addition & 0 deletions t/feature.t
Expand Up @@ -83,6 +83,7 @@ FILE
}

like $cpanfile->to_string, qr/feature/;
like $cpanfile->to_string, qr/DBD::SQLite/;
}

done_testing;

0 comments on commit 71a7b98

Please sign in to comment.