use
strict;
use
warnings;
use
Test::More;
use
Plack::Test;
my
$app
=
sub
{ [ 200, [
'Content-Type'
=>
'text/html'
], [
'<head></head>'
] ] };
test_psgi
app
=> Plack::Middleware::AutoRefresh->wrap(
$app
),
client
=>
sub
{
my
$cb
=
shift
;
my
$res
=
$cb
->(
$req
);
like
$res
->content,
qr/<head><script>/
;
};
done_testing;