X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2F2-input-gutenberg.t;h=857243d20ae17b473c9a7fc6f943f6492feb66c6;hb=01091188dac765b18d9fb9bd84cad20ee4bd3e95;hp=a0e68f9657864ce298d9b051b07e281c55f13a7d;hpb=73850e226593cec956a4b6a904c3360f99bd4a99;p=webpac2 diff --git a/t/2-input-gutenberg.t b/t/2-input-gutenberg.t index a0e68f9..857243d 100755 --- a/t/2-input-gutenberg.t +++ b/t/2-input-gutenberg.t @@ -1,30 +1,22 @@ #!/usr/bin/perl -w -use Test::More tests => 300; -use Test::Exception; -use Cwd qw/abs_path/; -use blib; use strict; +use lib 'lib'; -use Data::Dump qw/dump/; - -my $debug = shift @ARGV; +use Test::More tests => 300; BEGIN { +use_ok( 'WebPAC::Test' ); use_ok( 'WebPAC::Input' ); } -ok(my $abs_path = abs_path($0), "abs_path"); -$abs_path =~ s#/[^/]*$#/#; - my $module = 'WebPAC::Input::Gutenberg'; diag "testing with $module", $debug ? ' with debug' : ''; ok(my $input = new WebPAC::Input( module => $module, - no_log => $debug ? 0 : 1, no_progress_bar => 1, - debug => $debug, + %LOG ), "new"); ok(my $db = $input->open(