X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F020_attributes%2F007_attribute_custom_metaclass.t;h=5cdf82e14b0f9c5433cf85a773f5a8dbf7326733;hb=31aa6299ca20515174f1b145e5b3d4dbd9e09a08;hp=702cd6203f088a460ceaad1b7fc72ddb6ecfa4b0;hpb=410c35639fa6a9e13fbed562d087d09de375f5a0;p=gitmo%2FMouse.git diff --git a/t/020_attributes/007_attribute_custom_metaclass.t b/t/020_attributes/007_attribute_custom_metaclass.t index 702cd62..5cdf82e 100644 --- a/t/020_attributes/007_attribute_custom_metaclass.t +++ b/t/020_attributes/007_attribute_custom_metaclass.t @@ -1,13 +1,15 @@ #!/usr/bin/perl +# This is automatically generated by author/import-moose-test.pl. +# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! +use t::lib::MooseCompat; use strict; use warnings; -use Test::More tests => 16; +use Test::More; use Test::Exception; - { package Foo::Meta::Attribute; use Mouse; @@ -43,21 +45,19 @@ use Test::Exception; isa_ok($foo_attr_type_constraint, 'Mouse::Meta::TypeConstraint'); is($foo_attr_type_constraint->name, 'Foo', '... got the right type constraint name'); - - is($foo_attr_type_constraint->parent, 'Object', '... got the right type constraint parent name'); + is($foo_attr_type_constraint->parent->name, 'Object', '... got the right type constraint parent name'); } { package Bar::Meta::Attribute; use Mouse; - #extends 'Class::MOP::Attribute'; - extends 'Foo::Meta::Attribute'; + extends 'Mouse::Meta::Attribute'; package Bar; use Mouse; ::lives_ok { - has 'bar' => (metaclass => 'Bar::Meta::Attribute'); + has 'bar' => (metaclass => 'Bar::Meta::Attribute', is => 'bare'); } '... the attribute metaclass need not be a Mouse::Meta::Attribute as long as it behaves'; } @@ -92,4 +92,4 @@ use Test::Exception; isa_ok($bar_attr, 'Mouse::Meta::Attribute'); } - +done_testing;