Mouse::Util::does_role() respects $thing->does() method
[gitmo/Mouse.git] / t / 100_bugs / 004_subclass_use_base_bug.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 10
11=pod
12
13This just makes sure that the Bar gets
14a metaclass initialized for it correctly.
15
16=cut
17
18{
19 package Foo;
20 use Mouse;
21
22 package Bar;
23 use strict;
24 use warnings;
25
26 use base 'Foo';
27}
28
29my $bar = Bar->new;
30isa_ok($bar, 'Bar');
53f38c53 31isa_ok($bar, 'Foo');
ee5e6a03 32
33done_testing;