6 use Test::More tests => 10;
8 use Scalar::Util 'blessed';
12 use_ok('Moose::Meta::Role');
21 grandparent => 'gramma',
25 bless \%args => $class;
34 extends 'Grandparent';
59 is(blessed(Grandparent->new), "Grandparent", "got a Grandparent object out of Grandparent->new");
60 is(blessed(Parent->new), "Parent", "got a Parent object out of Parent->new");
61 is(blessed(Child->new), "Child", "got a Child object out of Child->new");
63 is(Child->new->grandparent, 1, "Child responds to grandparent");
64 is(Child->new->parent, 1, "Child responds to parent");
65 is(Child->new->child, 1, "Child responds to child");
67 is(Child->new->{grandparent}, 'gramma', "Instance structure has attributes");
68 is(Child->new->{parent}, 'mama', "Parent's 'around' is respected");