Revert most of the conversion to Test::Fatal so we can redo it
[gitmo/Moose.git] / t / 100_bugs / 016_inheriting_from_roles.t
CommitLineData
977a86ba 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
a28e50e4 6use Test::More;
53a4d826 7use Test::Exception;
977a86ba 8
7ff56534 9
977a86ba 10{
11 package My::Role;
12 use Moose::Role;
13}
14{
15 package My::Class;
16 use Moose;
d03bd989 17
53a4d826 18 ::throws_ok {
977a86ba 19 extends 'My::Role';
53a4d826 20 } qr/You cannot inherit from a Moose Role \(My\:\:Role\)/,
977a86ba 21 '... this croaks correctly';
22}
a28e50e4 23
24done_testing;