r1416@llin: dpavlin | 2007-10-31 13:17:08 +0100
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 31 Oct 2007 12:17:11 +0000 (12:17 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 31 Oct 2007 12:17:11 +0000 (12:17 +0000)
 minor tweaks

git-svn-id: svn+ssh://mjesec/home/dpavlin/svn/webpac2/trunk@938 07558da8-63fa-0310-ba24-9fe276d99e06

lib/WebPAC/Output/Sorted.pm
t/5-output-sorted.t

index 69cbf61..60b4b98 100644 (file)
@@ -61,6 +61,7 @@ sub init {
                $log->info("created ", $self->path);
        }
 
+       return 1;
 }
 
 
index b43c9be..8b73bf6 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/perl -w
 
-use Test::More tests => 13;
+use Test::More tests => 16;
 use Test::Exception;
 use Cwd qw/abs_path/;
 use Data::Dump qw/dump/;
@@ -56,4 +56,6 @@ cmp_ok( $out->path, 'eq', $path, 'path' );
 
 ok( $out->finish, 'finish' );
 
-ok( -e "$path/test.txt", 'list' );
+foreach my $l ( qw/source id array foo/ ) {
+       ok( -e "$path/$l.txt", "list $l exists" );
+}