# error handling
throws_ok {
Mouse::Meta::Class->create(
+ "ClassName",
superclasses => "foo"
);
} qr/You must pass an ARRAY ref of superclasses/;
throws_ok {
Mouse::Meta::Class->create(
+ "ClassName",
attributes => "foo"
);
} qr/You must pass an ARRAY ref of attributes/;
throws_ok {
Mouse::Meta::Class->create(
+ "ClassName",
methods => "foo"
);
} qr/You must pass a HASH ref of methods/;