X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2F1-config.t;h=5cad917bebf3084808099604210016185b096868;hb=5f5d44c525baf7d887f809f4281f208da33ac846;hp=650df47f4d37f7d423ee715e2571205d66e4f082;hpb=bbb112acd11f2a17a327a6a85ea308de01b66bba;p=webpac2 diff --git a/t/1-config.t b/t/1-config.t index 650df47..5cad917 100755 --- a/t/1-config.t +++ b/t/1-config.t @@ -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'); });