X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F001_basic.t;h=6c1c1fa4e1fd0b814267f4dab93b1fb8fba9c3a2;hb=2305f0032261fdaf4c8c94c7ce724cbdc662c4d7;hp=55cba234f56fb05da6d136aab10b275b8bb17e32;hpb=f63e631037a9d743d874ae465e8b0a8d541c16c2;p=gitmo%2FMooseX-Getopt.git diff --git a/t/001_basic.t b/t/001_basic.t index 55cba23..6c1c1fa 100644 --- a/t/001_basic.t +++ b/t/001_basic.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 53; +use Test::More tests => 69; BEGIN { use_ok('MooseX::Getopt'); @@ -79,6 +79,14 @@ BEGIN { } +foreach my $attr_name (qw(data cow horse _private_stuff_cmdline)) { + my $attr = App->meta->get_attribute($attr_name); + isa_ok($attr, 'Moose::Meta::Attribute'); + isa_ok($attr, 'MooseX::Getopt::Meta::Attribute'); + can_ok($attr, 'cmd_flag'); + can_ok($attr, 'cmd_aliases'); +} + { local @ARGV = ();