r971@llin: dpavlin | 2006-09-24 20:04:20 +0200
[webpac2] / t / 1-config.t
index 3dcc7b0..650df47 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use Test::More tests => 12;
+use Test::More tests => 24;
 use Test::Exception;
 use blib;
 
@@ -42,6 +42,8 @@ isa_ok(\@inputs, 'ARRAY', "inputs");
 cmp_ok(@inputs, '==', 2, "got 2 webpac inputs");
 
 $config->iterate_inputs(sub {
-       my $input = shift;
-       diag "input = ",dump($input);
+       my ($input,$database,$db_config) = @_;
+       isa_ok($input, 'HASH', 'input');
+       ok($database, 'database');
+       isa_ok($db_config, 'HASH', 'database config');
 });