summaryrefslogtreecommitdiffstats
path: root/t/also.t
blob: b6711144b320e38539fe4aeaf8ad13a611340f86 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use Test::Fatal;
use lib 't/lib/also';

{
    require Bar::Conflicts;
    is_deeply(
        { Bar::Conflicts->conflicts },
        {
            'Bar::Local'      => '0.02',
            'Foo::Thing'      => '0.01',
            'Foo::Thing::Sub' => '0.05',
        },
        "can detect the proper conflicts module"
    );
}

{
    require Bar::Conflicts2;
    is_deeply(
        { Bar::Conflicts2->conflicts },
        {
            'Bar::Also' => '0.06',
        },
        "unknown also entries are ignored"
    );
}

done_testing;