X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F040_meta_role.t;h=df706f3b693ac9651c03e6a562d5e021ad2f2a25;hb=68efb0148447f7c638d4278e2d002bc3bb13cfbb;hp=a972b201fda9361698086a210dc5abae80255fb0;hpb=3279ab4afa0c9be0568f48142b96d34548a5840e;p=gitmo%2FMoose.git diff --git a/t/040_meta_role.t b/t/040_meta_role.t index a972b20..df706f3 100644 --- a/t/040_meta_role.t +++ b/t/040_meta_role.t @@ -18,12 +18,9 @@ BEGIN { sub foo { 'FooRole::foo' } } -my $foo_role = Moose::Meta::Role->new( - role_name => 'FooRole' -); +my $foo_role = Moose::Meta::Role->initialize('FooRole'); isa_ok($foo_role, 'Moose::Meta::Role'); - -isa_ok($foo_role->_role_meta, 'Class::MOP::Class'); +isa_ok($foo_role, 'Class::MOP::Module'); is($foo_role->name, 'FooRole', '... got the right name of FooRole'); is($foo_role->version, '0.01', '... got the right version of FooRole');