From: Dave Rolsky Date: Tue, 30 Aug 2011 05:36:24 +0000 (-0500) Subject: Use Moose::Meta::Class->initialize instead of Moose->init_meta in test X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e83eac05d3ea79adc1d7468bc3bf5137a051a435;p=gitmo%2FMoose.git Use Moose::Meta::Class->initialize instead of Moose->init_meta in test --- diff --git a/t/metaclasses/moose_nonmoose_metatrait_init_order.t b/t/metaclasses/moose_nonmoose_metatrait_init_order.t index 8b35d87..2b68c97 100644 --- a/t/metaclasses/moose_nonmoose_metatrait_init_order.t +++ b/t/metaclasses/moose_nonmoose_metatrait_init_order.t @@ -1,5 +1,6 @@ use strict; use warnings; + { package My::Role; use Moose::Role; @@ -20,7 +21,8 @@ use warnings; use Test::More; use Moose::Util qw/find_meta does_role/; -my $subsubclass_meta = Moose->init_meta( for_class => 'SubSubClassUseBase' ); +my $subsubclass_meta + = Moose::Meta::Class->initialize( package => 'SubSubClassUseBase' ); ok does_role($subsubclass_meta, 'My::Role'), 'SubSubClass metaclass does role from grandparent metaclass'; my $subclass_meta = find_meta('SubClassUseBase');