summaryrefslogtreecommitdiffstats
path: root/t/34-extends.t
blob: bb66271b0595291e605ec0e68bd890034acf209d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use Test::Fatal;

{
    package Bar;
    use Moose;
}

{
    package Foo;
    use Moose;
    use MooseX::Bread::Board;

    ::like(::exception { extends 'Bar' },
           qr/^Cannot inherit from Bar because MooseX::Bread::Board classes must inherit from Bread::Board::Container/,
           "error when inheriting from a non-container");
}

done_testing;