/[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

Annotation of /t/basic.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3 - (hide annotations)
Tue Jun 16 19:39:42 2009 UTC (14 years, 11 months ago) by dpavlin
File MIME type: application/x-troff
File size: 483 byte(s)
fix test

1 dpavlin 3 #!/usr/bin/perl
2 dpavlin 1
3     use strict;
4     use warnings;
5    
6     use Mojo::Client;
7     use Mojo::Transaction;
8     use Test::More tests => 4;
9    
10 dpavlin 3 use lib 'lib';
11    
12 dpavlin 1 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