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