version bump
[gitmo/Moose.git] / t / metaclasses / new_metaclass.t
CommitLineData
95d07360 1#!/usr/bin/env perl
2use strict;
3use warnings;
a28e50e4 4use Test::More;
95d07360 5
6do {
7 package My::Meta::Class;
8 use Moose;
9 BEGIN { extends 'Moose::Meta::Class' };
8a8856de 10
11 package Moose::Meta::Class::Custom::MyMetaClass;
12 sub register_implementation { 'My::Meta::Class' }
95d07360 13};
14
15do {
16 package My::Class;
17 use Moose -metaclass => 'My::Meta::Class';
18};
19
8a8856de 20do {
21 package My::Class::Aliased;
22 use Moose -metaclass => 'MyMetaClass';
23};
24
95d07360 25is(My::Class->meta->meta->name, 'My::Meta::Class');
8a8856de 26is(My::Class::Aliased->meta->meta->name, 'My::Meta::Class');
95d07360 27
a28e50e4 28done_testing;