File: not-found.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-- 214 bytes parent folder | download
1
2
3
4
5
6
7
8
use t::Helper;

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

Test::Mojo->new->get_ok('/not-found', {})->status_is(404)->content_like(qr'This page is missing');

done_testing;