From 278678b42f16391c8fea83ff29eee5fc7875b991 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sun, 3 Feb 2019 16:06:36 +0000 Subject: [PATCH] comments.t: Assert that comments get permalink metadata Signed-off-by: Simon McVittie --- t/comments.t | 14 +++++++++++++- t/tinyblog/post.mdwn | 2 ++ 2 files changed, 15 insertions(+), 1 deletion(-) 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{