From: Shawn M Moore Date: Wed, 15 Apr 2009 20:39:52 +0000 (-0400) Subject: Test to make sure -metaclass works X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b21b135d913cc22d4e8434989e7bf011145aee95;p=gitmo%2FMoose.git Test to make sure -metaclass works --- diff --git a/t/030_roles/038_new_meta_role.t b/t/030_roles/038_new_meta_role.t new file mode 100644 index 0000000..000fd8e --- /dev/null +++ b/t/030_roles/038_new_meta_role.t @@ -0,0 +1,18 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use Test::More tests => 1; + +do { + package My::Meta::Role; + use Moose; + BEGIN { extends 'Moose::Meta::Role' }; +}; + +do { + package My::Role; + use Moose::Role -metaclass => 'My::Meta::Role'; +}; + +is(My::Role->meta->meta->name, 'My::Meta::Role'); +