X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Getopt.git;a=blobdiff_plain;f=t%2F008_configfromfile.t;h=9ea94c82e9ef3b9906c6c1f308e7a8dc7ecb915a;hp=62e6ed9dea92f4c5617306c3782695fdca5643be;hb=6a378fbdc3c4c5ca5b9f4de5e2ad60da912e9f97;hpb=2398d6282976028ab5e9ff6eb9e678781ea261b7 diff --git a/t/008_configfromfile.t b/t/008_configfromfile.t index 62e6ed9..9ea94c8 100644 --- a/t/008_configfromfile.t +++ b/t/008_configfromfile.t @@ -3,18 +3,13 @@ use strict; use warnings; +use Test::More tests => 37; use Test::Exception; -use Test::More; use File::Spec; -if ( !eval { require MooseX::ConfigFromFile } ) -{ - plan skip_all => 'Test requires MooseX::ConfigFromFile'; -} -else -{ - plan tests => 37; -} +use Test::Requires { + 'MooseX::ConfigFromFile' => 0.01, # skip all if not installed +}; { package App;