X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/a68c191f9f5749a7d472523fb65e022afd13380e..be8a28e1e5816d42f6500e9f7049d223333eac3b:/t/tag.t diff --git a/t/tag.t b/t/tag.t index 871488604..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"); } @@ -12,7 +12,6 @@ BEGIN { use_ok("IkiWiki::Plugin::tag"); } ok(! system("rm -rf t/tmp; mkdir t/tmp")); -$config{verbose} = 1; $config{srcdir} = 't/tmp'; $config{underlaydir} = 't/tmp'; $config{templatedir} = 'templates'; @@ -66,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 = (); @@ -82,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;