fix bug reported by Strayph in #moose where a subclass would not inherit the Role...
[gitmo/MooseX-ConfigFromFile.git] / t / 02subclass.t
CommitLineData
7760bb42 1#!/usr/bin/env perl
2use strict;
3use Test::More;
4use Test::Exception;
5{
6 package A;
7 use Moose;
8 with qw(MooseX::ConfigFromFile);
9
10 sub get_config_from_file { }
11}
12
13{
14 package B;
15 use Moose;
16 extends qw(A);
17}
18
19ok(B->does('MooseX::ConfigFromFile'), 'B does ConfigFromFile');
20lives_ok { B->new_with_config() } 'B->new_with_config lives';
21
22done_testing();