summaryrefslogtreecommitdiff
path: root/xt/cli/json_pp.t
blob: 99bea4e10c47464f8c93b5d63408d9b7dbfc873c (plain)
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
use strict;
use Test::More;
use xt::CLI;

plan skip_all => "perl <= 5.14" if $] >= 5.015;

{
    my $app = cli();

    $app->dir->child("cpanfile")->spew(<<EOF);
requires 'JSON';
requires 'CPAN::Meta', '2.12';
EOF

    $app->run("install");
    $app->clean_local;

    TODO: {
        local $TODO = "collect installs";
        $app->run("install", "--deployment");
        unlike $app->stderr, qr/JSON::PP is not in range/;
    }
}

done_testing;