remove useless shebangs in tests
[gitmo/MooseX-Getopt.git] / t / 004_nogetop.t
index c5c222c..a4c4455 100644 (file)
@@ -1,10 +1,8 @@
-#!/usr/bin/perl
-
 use strict;
 use warnings;
 
 use Test::More tests => 9;
-use Test::Exception 0.21;
+use Test::Fatal 0.003;
 
 BEGIN {
     use_ok('MooseX::Getopt');
@@ -98,5 +96,5 @@ BEGIN {
 {
     local @ARGV = (qw/--private_stuff 317/);
 
-    throws_ok { App->new_with_options } qr/Unknown option: private_stuff/;
+    like exception { App->new_with_options }, qr/Unknown option: private_stuff/;
 }