Commit | Line | Data |
4c98ebb0 |
1 | #!/usr/bin/perl |
ee5e6a03 |
2 | # This is automatically generated by author/import-moose-test.pl. |
3 | # DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! |
4 | use t::lib::MooseCompat; |
4c98ebb0 |
5 | |
6 | use strict; |
7 | use warnings; |
8 | |
ee5e6a03 |
9 | use Test::More; |
4c98ebb0 |
10 | use Test::Exception; |
11 | |
12 | |
4c98ebb0 |
13 | { |
14 | package My::Role; |
15 | use Mouse::Role; |
16 | } |
17 | { |
18 | package My::Class; |
19 | use Mouse; |
20 | |
21 | ::throws_ok { |
22 | extends 'My::Role'; |
23 | } qr/You cannot inherit from a Mouse Role \(My\:\:Role\)/, |
24 | '... this croaks correctly'; |
25 | } |
ee5e6a03 |
26 | |
27 | done_testing; |