Skip to content

Commit

Permalink
Require minimum versions of Test::Builder and Test::Builder::Module.
Browse files Browse the repository at this point in the history
Catches the problem where people copy Test::More into their distribution without
Test::Builder.

Fixes #89
  • Loading branch information
schwern committed Oct 20, 2011
1 parent a139df8 commit de232c0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Changes
Expand Up @@ -3,6 +3,11 @@
* BAIL_OUT works inside a subtest. (Larry Leszczynski) [github #138]
* subtests now work with threads turned on. [github #145]

Misc
* Test::More, Test::Simple and Test::Builder::Module now require
a minimum version of Test::Builder. This avoids Test::More and
Test::Builder from getting out of sync. [github #89]


0.98 Wed, 23 Feb 2011 14:38:02 +1100
Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion lib/Test/Builder/Module.pm
Expand Up @@ -2,7 +2,7 @@ package Test::Builder::Module;

use strict;

use Test::Builder;
use Test::Builder 0.98;

require Exporter;
our @ISA = qw(Exporter);
Expand Down
2 changes: 1 addition & 1 deletion lib/Test/More.pm
Expand Up @@ -20,7 +20,7 @@ sub _carp {
our $VERSION = '0.98';
$VERSION = eval $VERSION; ## no critic (BuiltinFunctions::ProhibitStringyEval)

use Test::Builder::Module;
use Test::Builder::Module 0.98;
our @ISA = qw(Test::Builder::Module);
our @EXPORT = qw(ok use_ok require_ok
is isnt like unlike is_deeply
Expand Down
2 changes: 1 addition & 1 deletion lib/Test/Simple.pm
Expand Up @@ -7,7 +7,7 @@ use strict;
our $VERSION = '0.98';
$VERSION = eval $VERSION; ## no critic (BuiltinFunctions::ProhibitStringyEval)

use Test::Builder::Module;
use Test::Builder::Module 0.98;
our @ISA = qw(Test::Builder::Module);
our @EXPORT = qw(ok);

Expand Down

0 comments on commit de232c0

Please sign in to comment.