r1604@llin: dpavlin | 2007-11-11 21:02:22 +0100
[webpac2] / t / 1-config.t
index 650df47..5cad917 100755 (executable)
@@ -1,22 +1,15 @@
 #!/usr/bin/perl -w
 
 use strict;
-use Test::More tests => 24;
-use Test::Exception;
 use blib;
 
-use Data::Dump qw/dump/;
-use Cwd qw/abs_path/;
+use Test::More tests => 28;
 
 BEGIN {
+use_ok( 'WebPAC::Test' );
 use_ok( 'WebPAC::Config' );
 }
 
-my $debug = shift @ARGV;
-
-ok(my $abs_path = abs_path($0), "abs_path");
-$abs_path =~ s#/[^/]*$#/#;
-
 my $path = "$abs_path/conf/test.yml";
 
 ok(my $config = new WebPAC::Config( path => $path ), "new");
@@ -46,4 +39,5 @@ $config->iterate_inputs(sub {
        isa_ok($input, 'HASH', 'input');
        ok($database, 'database');
        isa_ok($db_config, 'HASH', 'database config');
+       isa_ok($input->{normalize}, 'ARRAY', 'normalize');
 });