--- trunk/t/5-output-json.t 2007/08/23 20:56:59 883 +++ trunk/t/5-output-json.t 2007/11/01 00:16:48 949 @@ -1,26 +1,20 @@ #!/usr/bin/perl -w +use strict; +use blib; + use Test::More tests => 14; -use Test::Exception; -use Cwd qw/abs_path/; + use JSON; -use File::Slurp; -use Data::Dump qw/dump/; -use blib; -use strict; BEGIN { +use_ok( 'WebPAC::Test' ); use_ok( 'WebPAC::Output::JSON' ); } -my $debug = shift @ARGV; - -ok(my $abs_path = abs_path($0), "abs_path"); -$abs_path =~ s#/[^/]*$#/#; # -diag "abs_path: $abs_path"; my $path = "$abs_path/out/test.js"; -ok(my $out = new WebPAC::Output::JSON({ path => $path }), "new"); +ok(my $out = new WebPAC::Output::JSON({ path => $path, %LOG }), "new"); ok( $out->init, 'init' );