can use the same enclosing block for all these tests
[gitmo/MooseX-Getopt.git] / t / 008_configfromfile.t
index 9373d0f..521439f 100644 (file)
@@ -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;