6 use Test::More tests => 12;
10 use_ok('Moose::AttributeHelpers');
18 traits => ['Counter'],
25 reset_counter => 'reset',
30 my $page = MyHomePage->new();
31 isa_ok( $page, 'MyHomePage' );
33 can_ok( $page, $_ ) for qw[
41 $page->meta->remove_attribute('counter');
43 '... removed the counter attribute okay';
45 ok( !$page->meta->has_attribute('counter'),
46 '... no longer has the attribute' );
48 ok( !$page->can($_), "... our class no longer has the $_ method" ) for qw[