Amon2
view release on metacpan or search on metacpan
share/flavor/Basic/t/03_assets.t view on Meta::CPAN
use strict;
use warnings;
use utf8;
use t::Util;
use Plack::Test;
use Plack::Util;
use Test::More;
my $app = Plack::Util::load_psgi '<% $psgi_file // "app.psgi" %>';
test_psgi
app => $app,
client => sub {
my $cb = shift;
for my $fname (qw(static/js/xsrf-token.js robots.txt)) {
my $req = HTTP::Request->new(GET => "http://localhost/$fname");
my $res = $cb->($req);
is($res->code, 200, $fname) or diag $res->content;
}
};
done_testing;
( run in 0.571 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )