Commit | Line | Data |
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!!! |
4 | use t::lib::MooseCompat; |
4060c871 |
5 | |
6 | use strict; |
7 | use warnings; |
8 | |
6217087a |
9 | use Test::More; |
4060c871 |
10 | use Test::Exception; |
11 | |
4060c871 |
12 | lives_ok { |
9864f0e4 |
13 | package MouseX::Attribute::Test; |
4060c871 |
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'; |
9864f0e4 |
22 | with 'MouseX::Attribute::Test'; |
4060c871 |
23 | } 'custom attribute metaclass extending role is okay'; |
6217087a |
24 | |
25 | done_testing; |