Mojolicious-Plugin-PlackMiddleware
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
xt/compat/commands.t view on Meta::CPAN
use FindBin;
use lib "$FindBin::Bin/lib";
use Cwd 'cwd';
use File::Temp 'tempdir';
# Make sure @ARGV is not changed
{
local $ENV{MOJO_MODE};
local @ARGV = qw(-m production -x whatever);
require Mojolicious::Commands;
is $ENV{MOJO_MODE}, 'production', 'right mode';
is_deeply \@ARGV, [qw(-m production -x whatever)], 'unchanged';
}
# Environment detection
my $commands = Mojolicious::Commands->new;
{
local $ENV{PLACK_ENV} = 'production';
is $commands->detect, 'psgi', 'right environment';
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.107 second using v1.00-cache-2.02-grep-82fe00e-cpan-da92000dfeb )