summaryrefslogtreecommitdiff
path: root/xt/cli/freeze.t
blob: f02a2c3e10fa9d920848f3908a8d589ddae958e4 (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
use strict;
use Test::More;
use xt::CLI;

{
    my $app = cli();

    $app->write_cpanfile(<<EOF);
requires 'Try::Tiny', '== 0.11';
EOF

    $app->run("install");
    $app->run("list");
    like $app->stdout, qr/Try-Tiny-0\.11/;

    $app->clean_local;

    $app->run("install");
    $app->run("list");
    like $app->stdout, qr/Try-Tiny-0\.11/;
}

done_testing;