really commit
[gitmo/MooseX-Getopt.git] / t / 001_basic.t
index 55cba23..6c1c1fa 100644 (file)
@@ -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 = ();