> This is a long multi line quote so it should not be allowed to
> show up in its entirty in the Atom feed. drop me
+> I quote to much
+> I quote to much
+> I quote to much
+> I quote to much
msg $i
-> inline me here, short quote
+> inline me here
+> this is a short quote
keep me
EOF
# check initial feed
{
- my $feed = PublicInbox::Feed->generate($git_dir, 3);
- if ($have_xml_feed) {
+ my $feed = PublicInbox::Feed->generate({
+ git_dir => $git_dir,
+ max => 3
+ });
+ SKIP: {
+ skip 'XML::Feed missing', 2 unless $have_xml_feed;
my $p = XML::Feed->parse(\$feed);
is($p->format, "Atom", "parsed atom feed");
is(scalar $p->entries, 3, "parsed three entries");
# check spam shows up
{
- my $spammy_feed = PublicInbox::Feed->generate($git_dir, 3);
- if ($have_xml_feed) {
+ my $spammy_feed = PublicInbox::Feed->generate({
+ git_dir => $git_dir,
+ max => 3
+ });
+ SKIP: {
+ skip 'XML::Feed missing', 2 unless $have_xml_feed;
my $p = XML::Feed->parse(\$spammy_feed);
is($p->format, "Atom", "parsed atom feed");
is(scalar $p->entries, 3, "parsed three entries");
# spam no longer shows up
{
- my $feed = PublicInbox::Feed->generate($git_dir, 3);
- if ($have_xml_feed) {
+ my $feed = PublicInbox::Feed->generate({
+ git_dir => $git_dir,
+ max => 3
+ });
+ SKIP: {
+ skip 'XML::Feed missing', 2 unless $have_xml_feed;
my $p = XML::Feed->parse(\$feed);
is($p->format, "Atom", "parsed atom feed");
is(scalar $p->entries, 3, "parsed three entries");