File: nph.t

package info (click to toggle)
libmojolicious-plugin-cgi-perl 0.36-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 208 kB
  • ctags: 17
  • sloc: perl: 300; makefile: 2
file content (8 lines) | stat: -rw-r--r-- 195 bytes parent folder | download
1
2
3
4
5
6
7
8
use t::Helper;

use Mojolicious::Lite;
plugin CGI => ['/nph' => cgi_script('nph.pl')];

Test::Mojo->new->get_ok('/nph', {})->status_is(403)->content_like(qr'This is the paywall');

done_testing;