Commit | Line | Data |
---|---|---|
fcb7afc2 | 1 | #!/usr/bin/perl |
2 | ||
3 | use strict; | |
4 | use warnings; | |
5 | ||
7ff56534 | 6 | use Test::More tests => 2; |
7 | ||
fcb7afc2 | 8 | |
fcb7afc2 | 9 | |
10 | =pod | |
11 | ||
d03bd989 | 12 | This just makes sure that the Bar gets |
fcb7afc2 | 13 | a metaclass initialized for it correctly. |
14 | ||
15 | =cut | |
16 | ||
17 | { | |
d03bd989 | 18 | package Foo; |
19 | use Moose; | |
fcb7afc2 | 20 | |
d03bd989 | 21 | package Bar; |
fcb7afc2 | 22 | use strict; |
23 | use warnings; | |
d03bd989 | 24 | |
25 | use base 'Foo'; | |
fcb7afc2 | 26 | } |
27 | ||
28 | my $bar = Bar->new; | |
29 | isa_ok($bar, 'Bar'); | |
30 | isa_ok($bar, 'Foo'); |