bf3d0e39ae796cb79bf87a845e504c1528795994
[gitmo/Mouse.git] / t / 050_metaclasses / 002_custom_attr_meta_as_role.t
1 #!/usr/bin/perl
2 # This is automatically generated by author/import-moose-test.pl.
3 # DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
4 use t::lib::MooseCompat;
5
6 use strict;
7 use warnings;
8
9 use Test::More;
10 use Test::Exception;
11
12 lives_ok {
13     package MooseX::Attribute::Test;
14     use Mouse::Role;
15 } 'creating custom attribute "metarole" is okay';
16
17 lives_ok {
18     package Mouse::Meta::Attribute::Custom::Test;
19     use Mouse;
20
21     extends 'Mouse::Meta::Attribute';
22     with 'MooseX::Attribute::Test';
23 } 'custom attribute metaclass extending role is okay';
24
25 done_testing;