diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-05-15 19:21:51 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-05-15 19:21:51 +0000 |
commit | e31f9059a9f3918f12c40d4d66f2db885d6f914a (patch) | |
tree | e87f850b34f4bafba1f735ed2162a0d7cba5a635 /xt/cli/json_pp.t | |
download | Carton-tarball-e31f9059a9f3918f12c40d4d66f2db885d6f914a.tar.gz |
Carton-v1.0.21HEADCarton-v1.0.21master
Diffstat (limited to 'xt/cli/json_pp.t')
-rw-r--r-- | xt/cli/json_pp.t | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/xt/cli/json_pp.t b/xt/cli/json_pp.t new file mode 100644 index 0000000..0c64395 --- /dev/null +++ b/xt/cli/json_pp.t @@ -0,0 +1,23 @@ +use strict; +use Test::More; +use xt::CLI; + +plan skip_all => "perl <= 5.14" if $] >= 5.015; + +{ + my $app = cli(); + + $app->write_cpanfile(<<EOF); +requires 'JSON'; +requires 'CPAN::Meta', '2.12'; +EOF + + $app->run("install"); + $app->clean_local; + + $app->run("install", "--deployment"); + unlike $app->stderr, qr/JSON::PP is not in range/; +} + +done_testing; + |