X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fpsgi_search.t;h=8868f67ee29a4187049a14264ec99122d5048cc2;hb=5198c976ce8b1954f0f76a0da152cc434411f147;hp=3da93eda718cd7335c2b1f747f2a7f16e2bf880e;hpb=2bd8f48268ac24a4d3cac326a89099639ae1d170;p=public-inbox.git diff --git a/t/psgi_search.t b/t/psgi_search.t index 3da93eda..8868f67e 100644 --- a/t/psgi_search.t +++ b/t/psgi_search.t @@ -1,5 +1,5 @@ #!perl -w -# Copyright (C) 2017-2021 all contributors +# Copyright (C) all contributors # License: AGPL-3.0+ use strict; use v5.10.1; @@ -103,6 +103,11 @@ test_psgi(sub { $www->call(@_) }, sub { like($res->content, $mid_re, 'found mid in response'); chop($digits); } + $res = $cb->(GET("/test/$mid/")); + $html = $res->content; + like($html, qr/\bFrom: Ævar /, + "displayed Ævar's name properly in permalink From:"); + unlike($html, qr/Ã/, 'no raw octets in permalink HTML'); $res = $cb->(GET('/test/')); $html = $res->content;