X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/8e8311718a0ca4d52aa86a9c8cc439430b11a468..a44d943bbae6f1cb509e7564a8777406bcbb8609:/t/tag.t?ds=sidebyside diff --git a/t/tag.t b/t/tag.t index 9f2a8f3ec..cc0a30cad 100755 --- a/t/tag.t +++ b/t/tag.t @@ -3,7 +3,7 @@ package IkiWiki; use warnings; use strict; -use Test::More tests => 23; +use Test::More tests => 24; 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 = ();