From: Dave Rolsky Date: Fri, 3 Jul 2009 02:20:22 +0000 (-0500) Subject: please do not use Moose in CMOP tests! X-Git-Tag: 0.89~5^2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=981e64d483f74cc3afa82e5cb7fdf658dd775328;p=gitmo%2FClass-MOP.git please do not use Moose in CMOP tests! --- diff --git a/t/088_immutable_role_application_bug.t b/t/088_immutable_role_application_bug.t deleted file mode 100644 index 54bafc0..0000000 --- a/t/088_immutable_role_application_bug.t +++ /dev/null @@ -1,32 +0,0 @@ -use strict; -use warnings; - -use Test::More tests => 1; - -BEGIN { - - package My::Meta::Trait; - use Moose::Role; - - our $HAS_METH = 0; - - before 'make_immutable' => sub { - my ($meta) = @_; - - # $meta->name->meta should have the correct methods on it.. - $HAS_METH++ if $meta->name->meta->get_method('some_method'); - }; -} - -{ - - package TestClass; - use Moose -traits => 'My::Meta::Trait'; - - sub some_method { } - - __PACKAGE__->meta->make_immutable; -} - -ok( $My::Meta::Trait::HAS_METH, 'Can find method' ); -