--- t/50-strix.t 2008/06/15 23:59:51 168 +++ t/50-strix.t 2008/06/16 16:48:16 174 @@ -8,7 +8,7 @@ =cut -use Jifty::Test tests => 9; +use Jifty::Test tests => 10; use Data::Dump qw/dump/; @@ -17,12 +17,13 @@ $Strix::debug = 1 if @ARGV; my $debug = $Strix::debug; -my $site = 'os-test0604-zg'; +my $instance = 'os-test0604-zg'; +$instance = 'new'; -ok( my $dbh = Strix->dbh( $site ), 'dbh' ); +ok( my $dbh = Strix->dbh( $instance ), 'dbh' ); isa_ok( $dbh, 'DBI::db' ); -ok( my $strix = Strix->new({ site => $site }), 'new' ); +ok( my $strix = Strix->new({ instance => $instance }), 'new' ); isa_ok( $strix, 'Strix' ); my $url = '/'; @@ -35,3 +36,8 @@ diag dump( $layout ) if $debug; ok( $layout->{pre}, 'pre' ); ok( $layout->{free}, 'free' ); + +my $site_id = 1; + +ok( my $sitemap = $strix->sitemap( $site_id ), "sitemap $site_id" ); +diag dump( $sitemap ) if $debug;