8 |
|
|
9 |
=cut |
=cut |
10 |
|
|
11 |
use Jifty::Test tests => 9; |
use Jifty::Test tests => 10; |
12 |
|
|
13 |
use Data::Dump qw/dump/; |
use Data::Dump qw/dump/; |
14 |
|
|
17 |
$Strix::debug = 1 if @ARGV; |
$Strix::debug = 1 if @ARGV; |
18 |
my $debug = $Strix::debug; |
my $debug = $Strix::debug; |
19 |
|
|
20 |
my $site = 'os-test0604-zg'; |
my $instance = 'os-test0604-zg'; |
21 |
|
$instance = 'new'; |
22 |
|
|
23 |
ok( my $dbh = Strix->dbh( $site ), 'dbh' ); |
ok( my $dbh = Strix->dbh( $instance ), 'dbh' ); |
24 |
isa_ok( $dbh, 'DBI::db' ); |
isa_ok( $dbh, 'DBI::db' ); |
25 |
|
|
26 |
ok( my $strix = Strix->new({ site => $site }), 'new' ); |
ok( my $strix = Strix->new({ instance => $instance }), 'new' ); |
27 |
isa_ok( $strix, 'Strix' ); |
isa_ok( $strix, 'Strix' ); |
28 |
|
|
29 |
my $url = '/'; |
my $url = '/'; |
36 |
diag dump( $layout ) if $debug; |
diag dump( $layout ) if $debug; |
37 |
ok( $layout->{pre}, 'pre' ); |
ok( $layout->{pre}, 'pre' ); |
38 |
ok( $layout->{free}, 'free' ); |
ok( $layout->{free}, 'free' ); |
39 |
|
|
40 |
|
ok( my @sites = $strix->sites, "sites" ); |
41 |
|
diag dump( @sites ) if $debug; |