Parent Directory | Revision Log
fix test
1 | #!/usr/bin/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 lib 'lib'; |
11 | |
12 | use_ok('SysIface'); |
13 | |
14 | # Prepare client and transaction |
15 | my $client = Mojo::Client->new; |
16 | my $tx = Mojo::Transaction->new_get('/'); |
17 | |
18 | # Process request |
19 | $client->process_local('SysIface', $tx); |
20 | |
21 | # Test response |
22 | is($tx->res->code, 200); |
23 | is($tx->res->headers->content_type, 'text/html'); |
24 | like($tx->res->content->file->slurp, qr/Mojolicious Web Framework/i); |
ViewVC Help | |
Powered by ViewVC 1.1.26 |