X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/9d548239a92cb01429334b68c3967bc4dbcf0c50..86db49b91da3b1c3d047900f68077f12dfb16ac7:/t/tag.t diff --git a/t/tag.t b/t/tag.t index 8fc4940a2..5bee61f52 100755 --- a/t/tag.t +++ b/t/tag.t @@ -3,7 +3,7 @@ package IkiWiki; use warnings; use strict; -use Test::More tests => 24; +use Test::More; BEGIN { use_ok("IkiWiki"); } BEGIN { use_ok("IkiWiki::Render"); } @@ -65,8 +65,8 @@ my (%pages, @del); IkiWiki::gen_autofile("tags/lucky.mdwn", \%pages, \@del); ok(! -s "t/tmp/tags/lucky.mdwn"); ok(-s "t/tmp/.ikiwiki/transient/tags/lucky.mdwn"); -is_deeply(\%pages, {"t/tmp/tags/lucky" => 1}) || diag explain \%pages; -is_deeply(\@del, []) || diag explain \@del; +is_deeply(\%pages, {"t/tmp/tags/lucky" => 1}); +is_deeply(\@del, []); # generating an autofile that already exists does nothing %pages = @del = (); @@ -81,8 +81,4 @@ IkiWiki::gen_autofile("tags/primes.mdwn", \%pages, \@del); is_deeply(\%pages, {}); is_deeply(\@del, ['tags/primes.mdwn']); - -# cleanup -ok(! system("rm -rf t/tmp")); - -1; +done_testing;