diff options
author | Eric Wong <e@80x24.org> | 2015-09-01 08:55:23 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-09-01 08:56:04 +0000 |
commit | d44ed46ee92c78aaaed64975c4d6846613963be4 (patch) | |
tree | 0a7546dc1b8b375e49fbca495f7077535dc464c0 /t | |
parent | 864dc1c4c61d240651a9f48983e0bf00147a3953 (diff) | |
download | public-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.t | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |