Perltidy this code a bit.
[gitmo/Moose.git] / t / 100_bugs / 016_inheriting_from_roles.t
CommitLineData
977a86ba 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
6use Test::More tests => 2;
7use Test::Exception;
8
9BEGIN {
10 use_ok('Moose');
11}
12
13{
14 package My::Role;
15 use Moose::Role;
16}
17{
18 package My::Class;
19 use Moose;
20
21 ::throws_ok {
22 extends 'My::Role';
23 } qr/You cannot inherit from a Moose Role \(My\:\:Role\)/,
24 '... this croaks correctly';
25}