Add another MOOSE_TEST_MD option, MooseX
[gitmo/Moose.git] / t / bugs / inheriting_from_roles.t
CommitLineData
977a86ba 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
a28e50e4 6use Test::More;
b10dde3a 7use Test::Fatal;
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
b10dde3a 18 ::like( ::exception {
977a86ba 19 extends 'My::Role';
b10dde3a 20 }, qr/You cannot inherit from a Moose Role \(My\:\:Role\)/, '... this croaks correctly' );
977a86ba 21}
a28e50e4 22
23done_testing;