if configfile is a coderef call it and write some tests for it
[gitmo/MooseX-Getopt.git] / t / 009_gld_and_explicit_options.t
index e81b300..266ff8c 100644 (file)
@@ -6,8 +6,8 @@ use warnings;
 use Test::More;
 use Test::Exception;
 
-BEGIN {
-    eval "use Getopt::Long::Descriptive;";
+BEGIN { 
+    eval 'use Getopt::Long::Descriptive;';
     plan skip_all => "Getopt::Long::Descriptive required for this test" if $@;
     plan tests => 5;
     use_ok('MooseX::Getopt');
@@ -32,7 +32,7 @@ BEGIN {
     );    
 }
 
-our @ARGV = qw(bar 10);
+@ARGV = qw(--bar 10);
 
 my $foo;
 lives_ok {