X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/94a51309635b799fd25aeaf60d90fab25939343e..508bda205911058377f36fd4924b1e3f33914c71:/t/trail.t diff --git a/t/trail.t b/t/trail.t index 59eb0d4d6..bde812887 100755 --- a/t/trail.t +++ b/t/trail.t @@ -131,11 +131,11 @@ EOF ok(! system("make -s ikiwiki.out")); -my $command = "perl -I. ./ikiwiki.out -set usedirs=0 -plugin trail -plugin inline -url=http://example.com -cgiurl=http://example.com/ikiwiki.cgi -rss -atom -underlaydir=underlays/basewiki -set underlaydirbase=underlays -templatedir=templates t/tmp/in t/tmp/out -verbose"; +my $command = "perl -I. ./ikiwiki.out --set usedirs=0 --plugin trail --plugin inline --url=http://example.com --cgiurl=http://example.com/ikiwiki.cgi --rss --atom --underlaydir=underlays/basewiki --set underlaydirbase=underlays --templatedir=templates t/tmp/in t/tmp/out --verbose"; ok(! system($command)); -ok(! system("$command -refresh")); +ok(! system("$command --refresh")); $blob = readfile("t/tmp/out/meme.html"); ok($blob =~ /badger<\/a>/m); @@ -232,7 +232,7 @@ writefile("limited/c.mdwn", "t/tmp/in", '[[!meta title="New C page"]]c'); writefile("untrail.mdwn", "t/tmp/in", "no longer a trail"); -ok(! system("$command -refresh")); +ok(! system("$command --refresh")); check_trail("add/a.html", "n=add/b p="); check_trail("add/b.html", "n=add/c p=add/a"); @@ -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 >/m); $blob = readfile("t/tmp/out/limited/d.html"); ok($blob =~ /< 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");