projects
/
gitmo/Moo.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
changelog constructor fix
[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;