aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2011-01-07 20:11:19 +0000
committerSimon McVittie <smcv@debian.org>2011-01-07 20:11:19 +0000
commitf695bdd843520729aa73cd063c22f1ebd1a01f1f (patch)
tree1ab4740d87831f4b95c2020a4e2ed9985a7206e7 /t
parent2a60cda1729ead6dd2f13fc40ef1dccec5b30d92 (diff)
downloadikiwiki-f695bdd843520729aa73cd063c22f1ebd1a01f1f.tar
ikiwiki-f695bdd843520729aa73cd063c22f1ebd1a01f1f.tar.gz
tag test: write tag pages into the transient underlay
Diffstat (limited to 't')
-rwxr-xr-xt/tag.t7
1 files changed, 4 insertions, 3 deletions
diff --git a/t/tag.t b/t/tag.t
index f4aac765f..0d360b06e 100755
--- a/t/tag.t
+++ b/t/tag.t
@@ -3,7 +3,7 @@ package IkiWiki;
use warnings;
use strict;
-use Test::More tests => 22;
+use Test::More tests => 23;
BEGIN { use_ok("IkiWiki"); }
BEGIN { use_ok("IkiWiki::Render"); }
@@ -22,7 +22,7 @@ $config{wiki_file_chars} = "-[:alnum:]+/.:_";
$config{userdir} = "users";
$config{tagbase} = "tags";
$config{tag_autocreate} = 1;
-$config{tag_autocreate_commit} = 1;
+$config{tag_autocreate_commit} = 0;
$config{default_pageext} = "mdwn";
$config{wiki_file_prune_regexps} = [qr/^\./];
$config{underlaydirbase} = '.';
@@ -66,7 +66,8 @@ my (%pages, @del);
IkiWiki::gen_autofile("tags/lucky.mdwn", \%pages, \@del);
is_deeply(\%pages, {"t/tmp/tags/lucky" => 1}) || diag explain \%pages;
is_deeply(\@del, []) || diag explain \@del;
-ok(-s "t/tmp/tags/lucky.mdwn");
+ok(! -s "t/tmp/tags/lucky.mdwn");
+ok(-s "t/tmp/.ikiwiki/transient/tags/lucky.mdwn");
# generating an autofile that already exists does nothing
%pages = @del = ();