6 use Test::More tests => 5;
10 'Getopt::Long::Descriptive' => 0.01, # skip all if not installed
13 use_ok('MooseX::Getopt');
19 with 'MooseX::Getopt';
22 metaclass => 'Getopt',
33 my $foo = Engine::Foo->new_with_options(nproc => 10);
34 isa_ok($foo, 'Engine::Foo');
36 is($foo->nproc, 10, '... got the right value (10), not the default (1)');
40 my $foo = Engine::Foo->new_with_options();
41 isa_ok($foo, 'Engine::Foo');
43 is($foo->nproc, 1, '... got the right value (1), without GLD needing to handle defaults');