update repo to point to github
[gitmo/Moo.git] / t / compose-non-role.t
1 use strictures 1;
2 use Test::More;
3 use 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
14 done_testing;