10 eval 'use Getopt::Long::Descriptive;';
11 plan skip_all => "Getopt::Long::Descriptive required for this test" if $@;
13 use_ok('MooseX::Getopt');
20 with 'MooseX::Getopt';
23 metaclass => 'Getopt',
34 my $foo = Engine::Foo->new_with_options(nproc => 10);
35 isa_ok($foo, 'Engine::Foo');
37 is($foo->nproc, 10, '... got the right value (10), not the default (1)');
41 my $foo = Engine::Foo->new_with_options();
42 isa_ok($foo, 'Engine::Foo');
44 is($foo->nproc, 1, '... got the right value (1), without GLD needing to handle defaults');