You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.8 KiB
59 lines
1.8 KiB
4 years ago
|
--- t/000-report-versions-tiny.t
|
||
|
+++ t/000-report-versions-tiny.t
|
||
|
@@ -1,12 +1,6 @@
|
||
|
use strict;
|
||
|
use warnings;
|
||
|
-use Test::More 0.88;
|
||
|
-# This is a relatively nice way to avoid Test::NoWarnings breaking our
|
||
|
-# expectations by adding extra tests, without using no_plan. It also helps
|
||
|
-# avoid any other test module that feels introducing random tests, or even
|
||
|
-# test plans, is a nice idea.
|
||
|
-our $success = 0;
|
||
|
-END { $success && done_testing; }
|
||
|
+use Test::More 0.47 tests => 1;
|
||
|
|
||
|
# List our own version used to generate this
|
||
|
my $v = "\nGenerated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.08\n";
|
||
|
@@ -56,13 +50,12 @@
|
||
|
eval { $v .= pmver('File::Temp','any version') };
|
||
|
eval { $v .= pmver('Params::Util','0.14') };
|
||
|
eval { $v .= pmver('Sub::Install','0.92') };
|
||
|
-eval { $v .= pmver('Test::More','0.96') };
|
||
|
+eval { $v .= pmver('Test::More','0.47') };
|
||
|
eval { $v .= pmver('Test::Pod','1.41') };
|
||
|
eval { $v .= pmver('base','any version') };
|
||
|
eval { $v .= pmver('overload','any version') };
|
||
|
eval { $v .= pmver('strict','any version') };
|
||
|
eval { $v .= pmver('subs','any version') };
|
||
|
-eval { $v .= pmver('version','0.9901') };
|
||
|
eval { $v .= pmver('warnings','any version') };
|
||
|
|
||
|
|
||
|
@@ -77,7 +70,6 @@
|
||
|
|
||
|
diag($v);
|
||
|
ok(1, "we really didn't test anything, just reporting data");
|
||
|
-$success = 1;
|
||
|
|
||
|
# Work around another nasty module on CPAN. :/
|
||
|
no warnings 'once';
|
||
|
--- xt/release/changes_has_content.t
|
||
|
+++ xt/release/changes_has_content.t
|
||
|
@@ -2,7 +2,6 @@
|
||
|
|
||
|
use Test::More tests => 2;
|
||
|
|
||
|
-note 'Checking Changes';
|
||
|
my $changes_file = 'Changes';
|
||
|
my $newver = '0.986';
|
||
|
my $trial_token = '-TRIAL';
|
||
|
@@ -14,8 +13,6 @@
|
||
|
ok(_get_changes($newver), "$changes_file has content for $newver");
|
||
|
}
|
||
|
|
||
|
-done_testing;
|
||
|
-
|
||
|
# _get_changes copied and adapted from Dist::Zilla::Plugin::Git::Commit
|
||
|
# by Jerome Quelin
|
||
|
sub _get_changes
|