Fixed RSS multiple category with XML::RSS::LibXML
[catagits/XML-Feed.git] / t / 06-atom10.t
CommitLineData
c4d4c98e 1use strict;
2use XML::Feed;
3
4use Test::More;
5plan tests => 7;
6
7my $feed = XML::Feed->parse("t/samples/atom-full.xml");
8is $feed->title, 'Content Considered Harmful Atom Feed';
9is $feed->link, 'http://blog.jrock.us/', "link without rel";
10
11my $e = ($feed->entries)[0];
12ok $e->link, 'entry link without rel';
a91dfb98 13is "".$e->category, "Catalyst", "atom:category support";
14is "".$e->modified, "2006-08-09T19:07:58", "atom:updated";
c4d4c98e 15is $e->content->type, 'text/html';
16like $e->content->body, qr/^<div class="pod">/;
17
18
19