Mouse::Util::does_role() respects $thing->does() method
[gitmo/Mouse.git] / t / 100_bugs / 016_inheriting_from_roles.t
CommitLineData
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!!!
4use t::lib::MooseCompat;
4c98ebb0 5
6use strict;
7use warnings;
8
ee5e6a03 9use Test::More;
4c98ebb0 10use 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
27done_testing;