Skip to content

Commit

Permalink
Adapt tests to work with newer CPAN::Changes which has more whitespace
Browse files Browse the repository at this point in the history
  Thanks Slaven Rezić for reporting
  closes #1
  • Loading branch information
kentfredric committed Jun 19, 2015
1 parent 49f2045 commit c3a0618
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 8 deletions.
7 changes: 6 additions & 1 deletion Changes
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
Release history for CPAN-Changes-Group-Dependencies-Details

{{$NEXT}}
[ BugFix ]
- Adapt tests to work with newer CPAN::Changes which has more whitespace
- Thanks Slaven Rezić for reporting
- closes #1

[ Dependencies::Stats ]
- Dependencies changed since 0.001003, see misc/*.deps* for details
- configure: +1 (recommends: ↑1)
- develop: +8 ↑3 -2 (recommends: +1, suggests: ↑2)
- runtime: ↓1 -1 (recommends: +1)
- test: +1 (recommends: ↑1 ↓1)
- test: +2 (recommends: +1 ↑1 ↓1)

0.001003 2014-08-30T10:45:12Z
[ 00 Trivial ]
Expand Down
3 changes: 2 additions & 1 deletion dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,5 @@ Dist::Zilla::Plugin::TestRelease = 0
Dist::Zilla::Plugin::Twitter = 0
Dist::Zilla::Plugin::UploadToCPAN = 0

[Prereqs]
[Prereqs / TestRecommends]
CPAN::Changes = 0.400001
3 changes: 2 additions & 1 deletion dist.ini.meta
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ srcreadme = mkdn
; twitter_extra_hash_tags =
; auto_prereqs_skip = File::Find

[Prereqs]
[Prereqs / TestRecommends ]
CPAN::Changes = 0.400001
1 change: 1 addition & 0 deletions misc/Changes.deps
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This file contains changes in REQUIRED dependencies for standard CPAN phases (co
- perl 5.006

[ Added / test requires ]
- Test::Requires
- perl 5.006

[ Changed / runtime requires ]
Expand Down
4 changes: 4 additions & 0 deletions misc/Changes.deps.all
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ This file contains ALL changes in dependencies in both REQUIRED / OPTIONAL depen
[ Added / runtime recommends ]
- Moo 1.000008

[ Added / test recommends ]
- CPAN::Changes 0.400001

[ Added / test requires ]
- Test::Requires
- perl 5.006

[ Changed / configure recommends ]
Expand Down
3 changes: 3 additions & 0 deletions misc/Changes.deps.opt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ This file contains changes in OPTIONAL dependencies for standard CPAN phases (co
[ Added / runtime recommends ]
- Moo 1.000008

[ Added / test recommends ]
- CPAN::Changes 0.400001

[ Changed / configure recommends ]
- ExtUtils::MakeMaker 6.98 → 7.00

Expand Down
10 changes: 5 additions & 5 deletions t/format.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use Test::More;
# CREATED: 07/26/14 20:47:10 by Kent Fredric (kentnl) <kentfredric@gmail.com>
# ABSTRACT: Test format is expected

use CPAN::Changes 0.30;
use Test::Requires { 'CPAN::Changes' => 0.400001 };
use CPAN::Changes::Release;
use CPAN::Changes::Group;
use CPAN::Meta::Prereqs::Diff;
Expand Down Expand Up @@ -57,8 +57,8 @@ $details_b->serialize;

{
my $expected = <<'EOF';
[Added / runtime requires]
- Moo 1.0
[ Added / runtime requires ]
- Moo 1.0
EOF

eq_or_diff( $details_a->serialize, $expected, 'Group serialization' );
Expand All @@ -67,8 +67,8 @@ $release->attach_group($details_a) if $details_a->has_changes;
{
my $expected = <<'EOF';
0.01 2014-07-26
[Added / runtime requires]
- Moo 1.0
[ Added / runtime requires ]
- Moo 1.0
EOF

Expand Down

0 comments on commit c3a0618

Please sign in to comment.