2 # This is automatically generated by author/import-moose-test.pl.
3 # DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
4 use t::lib::MooseCompat;
10 $TODO = q{Mouse is not yet completed};
16 This test demonstrates that Mouse will respect
17 a metaclass previously set with the metaclass
20 It also checks an error condition where that
21 metaclass must be a Mouse::Meta::Class subclass
32 use base 'Mouse::Meta::Class';
37 use metaclass 'Foo::Meta';
41 isa_ok(Foo->meta, 'Foo::Meta');
48 use base 'Mouse::Meta::Class';
53 use metaclass 'Bar::Meta';
55 ::ok($@, '... could not load moose without correct metaclass');
57 qr/^Bar already has a metaclass, but it does not inherit Mouse::Meta::Class/,
58 '... got the right error too');