use warnings;
use Test::More tests => 9;
-use Test::Exception;
+use Test::Fatal;
BEGIN {
use_ok('MooseX::Getopt');
package App;
use Moose;
- with 'MooseX::Getopt';
+ with 'MooseX::Getopt' => { getopt_conf => [] };
has 'data' => (
traits => ['Getopt'],
{
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/;
}