aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2013-01-02 19:14:26 +0000
committerSimon McVittie <smcv@debian.org>2013-01-02 19:19:32 +0000
commit7b06a65221ae16bf447c591dba5712c1d9f00461 (patch)
treecf19405c342a2f97863989a97dfdca0649c4f9f6 /t
parent94a51309635b799fd25aeaf60d90fab25939343e (diff)
downloadikiwiki-7b06a65221ae16bf447c591dba5712c1d9f00461.tar
ikiwiki-7b06a65221ae16bf447c591dba5712c1d9f00461.tar.gz
If the title of a trail or trail-member changes, rebuild affected pages
If the title of a trail changes, each member of that trail must be rebuilt, for its prev/up/next box to reflect the new title. If the title of a member changes, its next and previous items (if any) must be rebuilt, for their prev/up/next boxes to reflect the new title.
Diffstat (limited to 't')
-rwxr-xr-xt/trail.t6
1 files changed, 0 insertions, 6 deletions
diff --git a/t/trail.t b/t/trail.t
index 59eb0d4d6..dce3b3c7e 100755
--- a/t/trail.t
+++ b/t/trail.t
@@ -275,21 +275,15 @@ check_trail("limited/c.html", "n=limited/d p=limited/b");
check_trail("limited/d.html", "n= p=limited/c");
# Also, b and d should pick up the change to c. This regressed with the
# change to using a presence dependency.
-TODO: {
-local $TODO = "trail members don't pick up other members' title changes";
$blob = readfile("t/tmp/out/limited/b.html");
ok($blob =~ /New C page &gt;/m);
$blob = readfile("t/tmp/out/limited/d.html");
ok($blob =~ /&lt; New C page/m);
-}
# Members of a retitled trail should pick up that change.
# This regressed with the change to using a presence dependency.
-TODO: {
-local $TODO = "trail members don't pick up the trail's title changes";
$blob = readfile("t/tmp/out/retitled/a.html");
ok($blob =~ /\^ the new title \^/m);
-}
# untrail is no longer a trail, so these are no longer in it.
check_no_trail("untrail/a.html");