summaryrefslogtreecommitdiff
path: root/xt/cli/mismatch.t
diff options
context:
space:
mode:
Diffstat (limited to 'xt/cli/mismatch.t')
-rw-r--r--xt/cli/mismatch.t24
1 files changed, 24 insertions, 0 deletions
diff --git a/xt/cli/mismatch.t b/xt/cli/mismatch.t
new file mode 100644
index 0000000..11d5af4
--- /dev/null
+++ b/xt/cli/mismatch.t
@@ -0,0 +1,24 @@
+use strict;
+use Test::More;
+use xt::CLI;
+
+{
+ my $app = cli();
+
+ $app->write_cpanfile(<<EOF);
+requires 'Data::Dumper' => '== 2.139';
+requires 'Test::Differences' => '== 0.61';
+EOF
+
+ $app->run("install");
+ $app->run("list");
+
+ like $app->stdout, qr/Data-Dumper-2\.139/;
+ like $app->stdout, qr/Test-Differences-0\.61/;
+
+ $app->run("check");
+ like $app->stdout, qr/are satisfied/;
+}
+
+done_testing;
+