diff options
Diffstat (limited to 'xt/cli/freeze.t')
-rw-r--r-- | xt/cli/freeze.t | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/xt/cli/freeze.t b/xt/cli/freeze.t new file mode 100644 index 0000000..f02a2c3 --- /dev/null +++ b/xt/cli/freeze.t @@ -0,0 +1,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; + |