Mojolicious-Command-static

 view release on metacpan or  search on metacpan

t/basic.t  view on Meta::CPAN

use Mojo::Base -strict;

use Test::Mojo;
use Test::More;

ok eval "require Mojolicious::Command::static; 1", "load Mojolicious::Command::static";

# Make sure @ARGV is not changed
{
  local $ENV{MOJO_MODE};
  local @ARGV = qw(-m production -x whatever);
  require Mojolicious::Commands;
}

my $t = Test::Mojo->new;
my $commands = Mojolicious::Commands->new;

{
  local $ENV{MOJO_APP_LOADER} = 1;
  is ref Mojolicious::Commands->start_app('Mojo::HelloWorld' => 'static'), 'Mojo::HelloWorld', 'right reference';
}

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.253 second using v1.00-cache-2.02-grep-82fe00e-cpan-da92000dfeb )