X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F102_InsideOutClass_test.t;h=e96ef117c74414dff39b3edc4bb7c90cb60c7337;hb=caab0eaaa67d626df9e0113822d95fcfa0968022;hp=615203d37bd973207fa4ca36592a50f58c7d4d47;hpb=c23184fc39306590f9e481d76c199020a638bb28;p=gitmo%2FClass-MOP.git diff --git a/t/102_InsideOutClass_test.t b/t/102_InsideOutClass_test.t index 615203d..e96ef11 100644 --- a/t/102_InsideOutClass_test.t +++ b/t/102_InsideOutClass_test.t @@ -9,7 +9,7 @@ use Scalar::Util 'reftype'; BEGIN { use_ok('Class::MOP'); - require_ok(File::Spec->catdir('examples', 'InsideOutClass.pod')); + require_ok(File::Spec->catfile('examples', 'InsideOutClass.pod')); } { @@ -40,6 +40,10 @@ BEGIN { } package Bar; + use metaclass ( + 'attribute_metaclass' => 'InsideOutClass::Attribute', + 'instance_metaclass' => 'InsideOutClass::Instance' + ); use strict; use warnings; @@ -66,6 +70,10 @@ BEGIN { )); package Bar::Baz; + use metaclass ( + 'attribute_metaclass' => 'InsideOutClass::Attribute', + 'instance_metaclass' => 'InsideOutClass::Instance' + ); use strict; use warnings; @@ -214,4 +222,4 @@ is($baz->bling(), 'Baz::bling', '... Bar::Baz::bling has been initialized'); is(scalar(keys(%{'Bar::Baz::bar'})), 0, '... got the right number of entries for Bar::Baz::bar'); is(scalar(keys(%{'Bar::Baz::baz'})), 0, '... got the right number of entries for Bar::Baz::baz'); is(scalar(keys(%{'Bar::Baz::bling'})), 0, '... got the right number of entries for Bar::Baz::bling'); -} \ No newline at end of file +}