Parent Directory | Revision Log
mojolicious generate app SysIface
1 | #!perl |
2 | |
3 | use strict; |
4 | use warnings; |
5 | |
6 | use Mojo::Client; |
7 | use Mojo::Transaction; |
8 | use Test::More tests => 4; |
9 | |
10 | use_ok('SysIface'); |
11 | |
12 | # Prepare client and transaction |
13 | my $client = Mojo::Client->new; |
14 | my $tx = Mojo::Transaction->new_get('/'); |
15 | |
16 | # Process request |
17 | $client->process_local('SysIface', $tx); |
18 | |
19 | # Test response |
20 | is($tx->res->code, 200); |
21 | is($tx->res->headers->content_type, 'text/html'); |
22 | like($tx->res->content->file->slurp, qr/Mojolicious Web Framework/i); |
ViewVC Help | |
Powered by ViewVC 1.1.26 |