X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F008_configfromfile.t;h=521439f5e04f724818542e7c2a23f32973a611aa;hb=61f5803e6d7c23dd838ce9acbeaf7d51afb257d4;hp=9373d0f3f72abcdfd48c036b735e9f3be1c213c5;hpb=e202fd48ff22367bb28fd3aef438a301aa3e87a9;p=gitmo%2FMooseX-Getopt.git diff --git a/t/008_configfromfile.t b/t/008_configfromfile.t index 9373d0f..521439f 100644 --- a/t/008_configfromfile.t +++ b/t/008_configfromfile.t @@ -1,7 +1,7 @@ use strict; use warnings; -use Test::Requires 'MooseX::ConfigFromFile' => '0.06'; # skip all if not installed +use Test::Requires { 'MooseX::ConfigFromFile' => '0.06' }; # skip all if not installed use Test::More tests => 38; use Test::Fatal; use Path::Tiny; @@ -98,11 +98,6 @@ use Test::NoWarnings 1.04 ':early'; is( $app->configfile, path('/notused/default'), '... configfile is /notused/default as expected' ); } -} - -# No config specified -{ - local @ARGV = qw( --required_from_argv 1 ); { my $app = App::DefaultConfigFileCodeRef->new_with_options;