/[SysIface]/t/basic.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /t/basic.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations)
Tue Jun 16 19:33:55 2009 UTC (10 years, 2 months ago) by dpavlin
File MIME type: application/x-troff
File size: 458 byte(s)
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