Commit | Line | Data |
---|---|---|
977a86ba | 1 | #!/usr/bin/perl |
2 | ||
3 | use strict; | |
4 | use warnings; | |
5 | ||
7ff56534 | 6 | use Test::More tests => 1; |
977a86ba | 7 | use Test::Exception; |
8 | ||
7ff56534 | 9 | |
977a86ba | 10 | |
11 | { | |
12 | package My::Role; | |
13 | use Moose::Role; | |
14 | } | |
15 | { | |
16 | package My::Class; | |
17 | use Moose; | |
d03bd989 | 18 | |
977a86ba | 19 | ::throws_ok { |
20 | extends 'My::Role'; | |
d03bd989 | 21 | } qr/You cannot inherit from a Moose Role \(My\:\:Role\)/, |
977a86ba | 22 | '... this croaks correctly'; |
23 | } |