/[A3C]/t/50-strix.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/50-strix.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 193 - (show annotations)
Tue Jun 17 21:27:31 2008 UTC (14 years ago) by dpavlin
File MIME type: application/x-troff
File size: 788 byte(s)
- implement FIFO pool of dbh connections to strix
- rename sitemap to sites which is more correct
1 #!/usr/bin/env perl
2 use warnings;
3 use strict;
4
5 =head1 DESCRIPTION
6
7 test Strix integration
8
9 =cut
10
11 use Jifty::Test tests => 10;
12
13 use Data::Dump qw/dump/;
14
15 use_ok('Strix');
16
17 $Strix::debug = 1 if @ARGV;
18 my $debug = $Strix::debug;
19
20 my $instance = 'os-test0604-zg';
21 $instance = 'new';
22
23 ok( my $dbh = Strix->dbh( $instance ), 'dbh' );
24 isa_ok( $dbh, 'DBI::db' );
25
26 ok( my $strix = Strix->new({ instance => $instance }), 'new' );
27 isa_ok( $strix, 'Strix' );
28
29 my $url = '/';
30
31 ok( my $category = $strix->category( $url ), "category $url" );
32 diag dump( $category ) if $debug;
33
34
35 ok( my $layout = $strix->layout( $url ), "layout $url" );
36 diag dump( $layout ) if $debug;
37 ok( $layout->{pre}, 'pre' );
38 ok( $layout->{free}, 'free' );
39
40 ok( my @sites = $strix->sites, "sites" );
41 diag dump( @sites ) if $debug;

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26