/[webpac2]/Webpacus/t/01app.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 /Webpacus/t/01app.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 358 - (hide annotations)
Sun Jan 8 13:58:19 2006 UTC (18 years, 4 months ago) by dpavlin
File MIME type: application/x-troff
File size: 591 byte(s)
 r384@llin:  dpavlin | 2006-01-08 14:56:52 +0100
 load different templates for different sites (denoted by prefix in URL and
 root/sites/[site_name] directory

1 dpavlin 155 #!/usr/bin/perl -w
2    
3 dpavlin 358 use Test::More tests => 17;
4 dpavlin 155 use blib;
5 dpavlin 83 use_ok( Catalyst::Test, 'Webpacus' );
6    
7 dpavlin 165 # test some URIs
8 dpavlin 155
9 dpavlin 165 foreach my $url (qw#
10     /
11     /search
12     /search/results
13 dpavlin 271 /search/results/ajax
14     /search/results?all=a
15     /search/results/ajax?all=a
16     /search/results?all=a&_ajax=1
17     /search/results/ajax?all=a&_ajax=1
18 dpavlin 165 /search/suggest
19     /search/suggest/TitleProper?all=a
20     /editor
21     /editor/template
22     /editor/css
23     #) {
24     ok( request( $url )->is_success, "$url" );
25     }
26 dpavlin 358
27     ok( my $default = get( '/search' ), "/search");
28     ok( my $sites = get( '/hr/search' ), "/hr/search");
29     cmp_ok( $default, 'ne', $sites, 'sites');

  ViewVC Help
Powered by ViewVC 1.1.26