use strict;
use warnings;
-use Test::More tests => 9;
+use Test::More tests => 10;
use Test::Exception;
BEGIN {
with 'MooseX::Getopt::Strict';
has 'data' => (
- metaclass => 'MooseX::Getopt::Meta::Attribute',
+ metaclass => 'Getopt',
is => 'ro',
isa => 'Str',
default => 'file.dat',
);
has 'horse' => (
- metaclass => 'MooseX::Getopt::Meta::Attribute',
+ metaclass => 'Getopt',
is => 'ro',
isa => 'Str',
default => 'bray',
throws_ok { App->new_with_options } qr/Unknown option: private_stuff/;
}
+
+{
+ local @ARGV = (qw/--length 100/);
+
+ throws_ok { App->new_with_options } qr/Unknown option: length/;
+}
+