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