]> Dogcows Code - chaz/p5-CGI-Ex/blobdiff - t/3_conf_00_base.t
CGI::Ex 2.00
[chaz/p5-CGI-Ex] / t / 3_conf_00_base.t
index 31591c00d33cf26c1fb6a42b916b58ced1bb554c..cae8b75058aed079b4d27e6ee422c06266bf6268 100644 (file)
@@ -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"],
 });
This page took 0.017068 seconds and 4 git commands to generate.