about summary refs log tree commit homepage
path: root/t/psgi_v2.t
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-23 18:00:41 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-23 18:00:41 +0000
commit26895bbd94dc93b76274652f9ea35626fd63a5fa (patch)
treed9bcb3d0420ef228b962247de482904289947d62 /t/psgi_v2.t
parent0f5b6cfca5c040162ff06ee1185eb6e4bad4b69c (diff)
downloadpublic-inbox-26895bbd94dc93b76274652f9ea35626fd63a5fa.tar.gz
I forget this endpoint is still accessible (even if not linked).
This also simplifies new.html all around and removes some unused
clutter from the old days while we're at it.
Diffstat (limited to 't/psgi_v2.t')
-rw-r--r--t/psgi_v2.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/psgi_v2.t b/t/psgi_v2.t
index 73897985..1e45c263 100644
--- a/t/psgi_v2.t
+++ b/t/psgi_v2.t
@@ -78,6 +78,12 @@ test_psgi(sub { $www->call(@_) }, sub {
         my @bodies = ($res->content =~ />(hello [^<]+)</mg);
         is_deeply(\@bodies, [ "hello world!\n", "hello world\n" ],
                 'Atom ordering is chronological');
+
+        # new.html should sort by Date:, too (if Received is missing)
+        $res = $cb->(GET('/v2test/new.html'));
+        @bodies = ($res->content =~ /^(hello [^<]+)$/mg);
+        is_deeply(\@bodies, [ "hello world!\n", "hello world\n" ],
+                'new.html ordering is chronological');
 });
 
 $mime->header_set('Message-Id', 'a-mid@b');