6 use Test::More tests => 5;
22 # classes which does not implement required method
29 ::dies_ok { with('Foo::Role') } '... no foo method implemented by Foo::Class';
32 # class which does implement required method
39 ::lives_ok { with('Foo::Role') } '... has a foo method implemented by Bar::Class';
41 sub foo { 'Bar::Class::foo' }
44 # role which does implement required method
51 ::lives_ok { with('Foo::Role') } '... has a foo method implemented by Bar::Role';
53 sub foo { 'Bar::Role::foo' }
56 # role which does not implement required method
63 ::lives_ok { with('Foo::Role') } '... no foo method implemented by Baz::Role';