From: Shawn M Moore Date: Wed, 15 Apr 2009 20:39:52 +0000 (-0400) Subject: Test to make sure -metaclass works X-Git-Tag: 0.75~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d8f1e5f64888383b6015d51d7b3f10ba5dbc6cce;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'); +