X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fp5-CGI-Ex;a=blobdiff_plain;f=t%2F3_conf_00_base.t;h=cae8b75058aed079b4d27e6ee422c06266bf6268;hp=31591c00d33cf26c1fb6a42b916b58ced1bb554c;hb=4eee158dce82376f2f37de29d91c53f60a24aebe;hpb=85070b46d0a93ddbeef07341421adb8389a55418 diff --git a/t/3_conf_00_base.t b/t/3_conf_00_base.t index 31591c0..cae8b75 100644 --- a/t/3_conf_00_base.t +++ b/t/3_conf_00_base.t @@ -1,17 +1,21 @@ # -*- Mode: Perl; -*- -use Test; +=head1 NAME -BEGIN {plan tests => 24}; +3_conf_00_base.t - Test for the basic functionality of CGI::Ex::Conf -use CGI::Ex::Conf; -ok(1); +=cut -my $dir = $0; +use strict; +use Test::More tests => 24; + +use_ok('CGI::Ex::Conf'); + +my $dir = __FILE__; $dir =~ tr|\\|/|; # should probably use File::Spec -$dir =~ s|/[^/]+$||; -$dir = '.' if ! length $dir; -$dir .= '/samples'; +$dir =~ s|[^/]+$|../samples| || die "Couldn't determine dir"; +$dir =~ s|^t/|./t/|; # to satisfy conf + my $obj = CGI::Ex::Conf->new({ paths => ["$dir/conf_path_1", "$dir/conf_path_3"], });