Commit | Line | Data |
---|---|---|
a96520dd | 1 | package MXDefaultConfigTestBase; |
2 | use Moose; | |
3 | ||
4 | has 'inherited_ro_attr' => (is => 'ro', isa => 'Str'); | |
5 | ||
6 | no Moose; | |
7 | 1; | |
8 | ||
9 | package MXDefaultConfigTest; | |
10 | use Moose; | |
a96520dd | 11 | extends 'MXDefaultConfigTestBase'; |
12 | with 'MooseX::SimpleConfig'; | |
13 | ||
14 | has 'direct_attr' => (is => 'ro', isa => 'Int'); | |
15 | ||
16 | has 'req_attr' => (is => 'rw', isa => 'Str', required => 1); | |
17 | ||
b565b43c | 18 | around 'configfile' => sub { 'test.yaml' }; |
a96520dd | 19 | |
20 | no Moose; | |
21 | 1; |