X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/8ee9eabb1c5314f51641aaec4cb45d5c2d0fa7b8..14172959d4255c21ca772d92bfd546cf397c7716:/t/autoindex.t?ds=inline diff --git a/t/autoindex.t b/t/autoindex.t index 665f0dc1c..b38be8313 100755 --- a/t/autoindex.t +++ b/t/autoindex.t @@ -3,7 +3,7 @@ package IkiWiki; use warnings; use strict; -use Test::More tests => 37; +use Test::More tests => 38; BEGIN { use_ok("IkiWiki"); } BEGIN { use_ok("IkiWiki::Render"); } @@ -26,6 +26,7 @@ $config{userdir} = "users"; $config{tagbase} = "tags"; $config{default_pageext} = "mdwn"; $config{wiki_file_prune_regexps} = [qr/^\./]; +$config{autoindex_commit} = 0; is(checkconfig(), 1); @@ -117,7 +118,8 @@ is($autofiles{"tags.mdwn"}{plugin}, "autoindex"); IkiWiki::gen_autofile("tags.mdwn", \%pages, \@del); is_deeply(\%pages, {"t/tmp/tags" => 1}) || diag explain \%pages; is_deeply(\@del, []) || diag explain \@del; -ok(-s "t/tmp/tags.mdwn"); +ok(! -s "t/tmp/tags.mdwn"); +ok(-s "t/tmp/.ikiwiki/transient/tags.mdwn"); # needs creating because of an attachment ok(! exists $wikistate{autoindex}{autofile}{"attached.mdwn"}); @@ -127,6 +129,6 @@ is($autofiles{"attached.mdwn"}{plugin}, "autoindex"); IkiWiki::gen_autofile("attached.mdwn", \%pages, \@del); is_deeply(\%pages, {"t/tmp/attached" => 1}) || diag explain \%pages; is_deeply(\@del, []) || diag explain \@del; -ok(-s "t/tmp/attached.mdwn"); +ok(-s "t/tmp/.ikiwiki/transient/attached.mdwn"); 1;