about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-09-01 08:55:23 +0000
committerEric Wong <e@80x24.org>2015-09-01 08:56:04 +0000
commitd44ed46ee92c78aaaed64975c4d6846613963be4 (patch)
tree0a7546dc1b8b375e49fbca495f7077535dc464c0 /t
parent864dc1c4c61d240651a9f48983e0bf00147a3953 (diff)
downloadpublic-inbox-d44ed46ee92c78aaaed64975c4d6846613963be4.tar.gz
This allows users to subscribe to only a single thread
with their feed reader without subscribing to the rest of
the thread.

Update our endpoint notes while we're at it.
Diffstat (limited to 't')
-rw-r--r--t/cgi.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/cgi.t b/t/cgi.t
index fc28ae30..d84e6348 100644
--- a/t/cgi.t
+++ b/t/cgi.t
@@ -200,6 +200,18 @@ EOF
         } else {
                 like($res->{head}, qr/^Status: 501 /, "search not available");
         }
+
+        my $have_xml_feed = eval { require XML::Feed; 1 } if $indexed;
+        if ($have_xml_feed) {
+                $path = "/test/t/blahblah%40example.com/atom";
+                $res = cgi_run($path);
+                like($res->{head}, qr/^Status: 200 /, "atom returned 200");
+                like($res->{head}, qr!^Content-Type: application/xml!m,
+                        "search returned atom");
+                my $p = XML::Feed->parse(\($res->{body}));
+                is($p->format, "Atom", "parsed atom feed");
+                is(scalar $p->entries, 3, "parsed three entries");
+        }
 }
 
 # redirect list-name-only URLs