Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (28 sloc) 0.625 kb
use strict;
use Test::More;
use xt::CLI;
use Cwd;
my $cwd = Cwd::cwd();
{
# split string
my $app = cli();
$app->dir->touch("cpanfile", <<EOF);
requires 'PSGI';
EOF
$app->carton->{mirror} = "$cwd/xt/mirror,http://cpan.metacpan.org/";
$app->run("install");
$app->run("list");
like $app->output, qr/^PSGI-/;
}
{
# ARRAY ref
my $app = cli();
$app->dir->touch("cpanfile", <<EOF);
requires 'PSGI';
EOF
$app->carton->{mirror} = ["$cwd/xt/mirror", "http://cpan.metacpan.org/"];
$app->run("install");
$app->run("list");
like $app->output, qr/^PSGI-/;
}
done_testing;
Jump to Line
Something went wrong with that request. Please try again.