correct captures assignment in quote_sub
[gitmo/Moo.git] / t / compose-non-role.t
CommitLineData
c2afd039 1use strictures 1;
2use Test::More;
3use Test::Fatal;
4
5$INC{'MyRole.pm'} = __FILE__;
6
7{
8 package MyClass;
9 use Moo;
10 ::like(::exception { with 'MyRole'; }, qr/MyRole is not a Moo::Role/,
11 'error when composing non-role package');
12}
13
14done_testing;