6 use Test::More tests => 2;
9 use Moose::Meta::Class;
11 my $meta = Moose::Meta::Class->create_anon_class;
13 #local $TODO = 'not implemented yet';
15 eval { $meta->add_attribute('foo') };
16 like $@, qr/Attribute \(foo\) has no associated methods/,
17 'correct error message';
20 eval { $meta->add_attribute('bar', is => 'bare'); 1 },
21 'add attribute with no methods',