]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/psgi_search.t
search_view: show "No results" text on 404
[public-inbox.git] / t / psgi_search.t
index 8868f67ee29a4187049a14264ec99122d5048cc2..27946391cfd3030cc4fa6d6356ed7ec4f53cbc95 100644 (file)
@@ -93,6 +93,7 @@ test_psgi(sub { $www->call(@_) }, sub {
 
        $res = $cb->(POST('/test/?q=s:bogus&x=m'));
        is($res->code, 404, 'failed search result gives 404');
+       like($res->content, qr/No results found/, "`No results' shown");
        is_deeply([], $warn, 'no warnings');
 
        my $mid_re = qr/\Q$mid\E/o;