Update tests
[gitmo/Mouse.git] / t / 050_metaclasses / 002_custom_attr_meta_as_role.t
CommitLineData
4060c871 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
6use Test::More tests => 2;
7use Test::Exception;
8
9;
10
11lives_ok {
12 package MouseX::Attribute::Test;
13 use Mouse::Role;
14} 'creating custom attribute "metarole" is okay';
15
16lives_ok {
17 package Mouse::Meta::Attribute::Custom::Test;
18 use Mouse;
19
20 extends 'Mouse::Meta::Attribute';
21 with 'MouseX::Attribute::Test';
22} 'custom attribute metaclass extending role is okay';