use_ok('Moose::Meta::Role');
}
+=pod
+
+This test it kind of odd, it tests
+to see if make_immutable will DWIM
+when pressented with a class that
+inherits from a non-Moose base class.
+
+Since immutable only affects the local
+class, and if it doesnt find a constructor
+it will always create one, it won't
+discover this issue, and it will ignore
+the inherited constructor.
+
+This is not really the desired way, but
+detecting this opens a big can of worms
+which we are not going to deal with just
+yet (eventually yes, but most likely it
+will be when we have MooseX::Compile
+available and working).
+
+In the meantime, just know that when you
+call make_immutable on a class which
+inherits from a non-Moose class, you
+should add (inline_constructor => 0).
+
+Sorry Sartak.
+
+=cut
+
{
package Grandparent;
is(Child->new->parent, 1, "Child responds to parent");
is(Child->new->child, 1, "Child responds to child");
-is(Child->new->{grandparent}, 'gramma', "Instance structure has attributes");
-is(Child->new->{parent}, 'mama', "Parent's 'around' is respected");
+is(Child->new->{grandparent}, undef, "didnt create a value, cause immutable overode the constructor");
+is(Child->new->{parent}, undef, "didnt create a value, cause immutable overode the constructor");
+