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