From: Tomas Doran (t0m) Date: Tue, 9 Feb 2010 03:48:31 +0000 (+0000) Subject: Revert "Just skip the test if we don't have Capture::Tiny" X-Git-Tag: 0.27~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=88b4984047366361ee1241c2ee24df4a7bdd2cd7;p=gitmo%2FMooseX-Getopt.git Revert "Just skip the test if we don't have Capture::Tiny" This reverts commit 153352c387a7457e540fe151daba6d419f2abd35. --- diff --git a/Makefile.PL b/Makefile.PL index d3b9e47..ee89114 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -21,6 +21,7 @@ requires 'Getopt::Long::Descriptive' => '0.077'; build_requires 'Test::Moose'; build_requires 'Test::More' => '0.62'; build_requires 'Test::Exception' => '0.21'; +build_requires 'Capture::Tiny' => '0'; author_requires 'Test::Pod' => 1.14; author_requires 'Test::Pod::Coverage' => '1.04'; diff --git a/t/011_version_options.t b/t/011_version_options.t index f8f5a68..09bce03 100644 --- a/t/011_version_options.t +++ b/t/011_version_options.t @@ -1,13 +1,9 @@ use strict; use warnings; +use Capture::Tiny 'capture'; use File::Spec::Functions 'catfile'; use Test::More; -BEGIN { - eval "use Capture::Tiny 'capture'"; - plan skip_all => "Capture::Tiny unavailable" if $@; -} - my $HAVE_SIMPLECONFIG = eval { require MooseX::SimpleConfig; return 1;