package Foo::Class;
use Moose;
- ::dies_ok{ with('Foo::Role') }
+ ::dies_ok { with('Foo::Role') }
'... no foo method implemented by Foo::Class';
}
package Bar::Class;
use Moose;
- ::dies_ok{ with('Foo::Class') }
+ ::dies_ok { with('Foo::Class') }
'... cannot consume a class, it must be a role';
- ::lives_ok{ with('Foo::Role') }
+ ::lives_ok { with('Foo::Role') }
'... has a foo method implemented by Bar::Class';
sub foo {'Bar::Class::foo'}
package Bar::Role;
use Moose::Role;
- ::lives_ok{ with('Foo::Role') }
+ ::lives_ok { with('Foo::Role') }
'... has a foo method implemented by Bar::Role';
sub foo {'Bar::Role::foo'}
package Baz::Role;
use Moose::Role;
- ::lives_ok{ with('Foo::Role') }
+ ::lives_ok { with('Foo::Role') }
'... no foo method implemented by Baz::Role';
}
package Baz::Class;
use Moose;
- ::dies_ok{ with('Baz::Role') }
+ ::dies_ok { with('Baz::Role') }
'... no foo method implemented by Baz::Class2';
}
package Baz::Class2;
use Moose;
- ::lives_ok{ with('Baz::Role') }
+ ::lives_ok { with('Baz::Role') }
'... has a foo method implemented by Baz::Class2';
sub foo {'Baz::Class2::foo'}