Revert autogenerated tests. Tests should not changed radically.
[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
9864f0e4 6use Test::More tests => 2;
4060c871 7use Test::Exception;
8
9864f0e4 9;
10
4060c871 11lives_ok {
9864f0e4 12 package MouseX::Attribute::Test;
4060c871 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';
9864f0e4 21 with 'MouseX::Attribute::Test';
4060c871 22} 'custom attribute metaclass extending role is okay';