Revert "Just skip the test if we don't have Capture::Tiny"
Tomas Doran (t0m) [Tue, 9 Feb 2010 03:48:31 +0000 (03:48 +0000)]
This reverts commit 153352c387a7457e540fe151daba6d419f2abd35.

Makefile.PL
t/011_version_options.t

index d3b9e47..ee89114 100644 (file)
@@ -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';
index f8f5a68..09bce03 100644 (file)
@@ -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;