6 use Test::More tests => 5;
9 'Getopt::Long::Descriptive' => 0.01, # skip all if not installed
12 use_ok('MooseX::Getopt');
18 with 'MooseX::Getopt';
21 metaclass => 'Getopt',
32 my $foo = Engine::Foo->new_with_options(nproc => 10);
33 isa_ok($foo, 'Engine::Foo');
35 is($foo->nproc, 10, '... got the right value (10), not the default (1)');
39 my $foo = Engine::Foo->new_with_options();
40 isa_ok($foo, 'Engine::Foo');
42 is($foo->nproc, 1, '... got the right value (1), without GLD needing to handle defaults');