4 use Test::More tests => 12;
7 require_ok("MooseX::Adopt::Class::Accessor::Fast");
8 use_ok('TestAdoptCAF');
11 ok(TestAdoptCAF->can('meta'), 'Adopt seems to work');
12 ok(TestAdoptCAF->meta->find_attribute_by_name($_), "attribute $_ created")
16 my $t = TestAdoptCAF->new(foo => 100, bar => 200, groditi => 300);
17 is($t->{foo}, 100, '$self->{foo} set');
18 is($t->{bar}, 200, '$self->{bar} set');
19 is($t->{groditi}, 300, '$self->{groditi} set');
22 my $u = TestAdoptCAF->new({foo => 100, bar => 200, groditi => 300});
23 is($t->{foo}, 100, '$self->{foo} set');
24 is($t->{bar}, 200, '$self->{bar} set');
25 is($t->{groditi}, 300, '$self->{groditi} set');