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

Annotation of /t/50-strix.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 168 - (hide annotations)
Sun Jun 15 23:59:51 2008 UTC (14 years ago) by dpavlin
File MIME type: application/x-troff
File size: 678 byte(s)
added category and layout methods
1 dpavlin 168 #!/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 => 9;
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 $site = 'os-test0604-zg';
21    
22     ok( my $dbh = Strix->dbh( $site ), 'dbh' );
23     isa_ok( $dbh, 'DBI::db' );
24    
25     ok( my $strix = Strix->new({ site => $site }), 'new' );
26     isa_ok( $strix, 'Strix' );
27    
28     my $url = '/';
29    
30     ok( my $category = $strix->category( $url ), "category $url" );
31     diag dump( $category ) if $debug;
32    
33    
34     ok( my $layout = $strix->layout( $url ), "layout $url" );
35     diag dump( $layout ) if $debug;
36     ok( $layout->{pre}, 'pre' );
37     ok( $layout->{free}, 'free' );

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26