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

Contents of /Webpacus/t/01app.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 358 - (show annotations)
Sun Jan 8 13:58:19 2006 UTC (18 years, 3 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 #!/usr/bin/perl -w
2
3 use Test::More tests => 17;
4 use blib;
5 use_ok( Catalyst::Test, 'Webpacus' );
6
7 # test some URIs
8
9 foreach my $url (qw#
10 /
11 /search
12 /search/results
13 /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 /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
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