r1432@llin: dpavlin | 2007-10-31 22:43:23 +0100
[webpac2] / t / 1-config.t
index 3dcc7b0..dae78d5 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 use strict;
-use Test::More tests => 12;
+use Test::More tests => 28;
 use Test::Exception;
 use blib;
 
@@ -42,6 +42,9 @@ 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');
+       isa_ok($input->{normalize}, 'ARRAY', 'normalize');
 });