From: Hinrik Örn Sigurðsson Date: Mon, 25 Jan 2010 20:25:49 +0000 (+0000) Subject: Just skip the test if we don't have Capture::Tiny X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fversion_handling;p=gitmo%2FMooseX-Getopt.git Just skip the test if we don't have Capture::Tiny --- diff --git a/Makefile.PL b/Makefile.PL index ee89114..d3b9e47 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -21,7 +21,6 @@ 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 09bce03..f8f5a68 100644 --- a/t/011_version_options.t +++ b/t/011_version_options.t @@ -1,9 +1,13 @@ 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;