4 use Test::More tests => 5;
12 use_ok( 'WebPAC::Validate' );
15 my $debug = shift @ARGV;
17 ok(my $abs_path = abs_path($0), "abs_path");
18 $abs_path =~ s#/[^/]*$#/#;
20 throws_ok { new WebPAC::Validate( no_log => 1 ) } qr/need path/, "new without path";
22 ok(my $v = new WebPAC::Validate(
23 path => "$abs_path/data/validate_test",
26 ok($v->{rules}, "rules exist");