From: Simon McVittie Date: Sun, 3 Feb 2019 16:06:36 +0000 (+0000) Subject: comments.t: Assert that comments get permalink metadata X-Git-Tag: 3.20190207~14 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/278678b42f16391c8fea83ff29eee5fc7875b991 comments.t: Assert that comments get permalink metadata Signed-off-by: Simon McVittie --- diff --git a/t/comments.t b/t/comments.t index 9bc40b66a..fc87d72ff 100755 --- a/t/comments.t +++ b/t/comments.t @@ -68,6 +68,18 @@ sub slurp { my $content = slurp("t/tmp/out/post/index.html"); ok(defined $content); -ok($content =~ m/I conquered.*I explored.*I landed/s); +like($content, qr/I conquered.*I explored.*I landed/s); + +$content = slurp("t/tmp/out/post/index.atom"); +ok(defined $content); +like($content, qr{ + '); +unlike($content, qr{