- ok(-f $href, q{html enclosure exists});
-
- # XXX die if more than one enclosure is specified
+ ok(-f $href,
+ q{html enclosure exists});
+
+ $html = "$tmp/out/attempted_multiple_enclosures/index.html";
+ like(_extract_html_content($html, 'content'), qr/has content and/m,
+ q{html body text});
+ like(_extract_html_content($html, 'enclosure'), qr/this episode/m,
+ q{html enclosure});
+ ($href) = _extract_html_links($html, 'walter');
+ ok(-f $href,
+ q{html enclosure exists});