test for warnings everywhere
[gitmo/MooseX-Getopt.git] / t / 104_override_usage.t
index 8e7a1ff..3f0da19 100644 (file)
@@ -1,7 +1,9 @@
 use strict;
 use warnings;
-use Test::More 0.88;
+
+use Test::More tests => 9;
 use Test::Trap;
+use Test::NoWarnings 1.04 ':early';
 
 {
     package MyScript;
@@ -42,17 +44,16 @@ use Test::Trap;
           'Unknown option: q
 '
     ];
+    # FIXME - it looks like we have a spacing issue in Getopt::Long?
     my $exp = [
          'Unknown option: q
 ',
-         qq{usage: 104_override_usage.t [-?] [long options...]
-\t-? --usage --help  Prints this usage information.
-\t--foo              A foo
+         qq{usage: 104_override_usage.t [-?h] [long options...]
+\t-h -? --usage --help  Prints this usage information.
+\t--foo                A foo
 }
      ];
 
      is_deeply \@MyScript::exception, $exp;
 }
 
-done_testing;
-