]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/html_index.t
remove XML::Atom::SimpleFeed dependency
[public-inbox.git] / t / html_index.t
index 690368f16aca39fd887ab9ae9837125e19f9ffe8..73311f6526f61b2a9bf36860a80826f2686404af 100644 (file)
@@ -50,11 +50,13 @@ EOF
 
 # check HTML index
 {
-       my $feed = PublicInbox::Feed->generate_html_index({
+       use IO::File;
+       my $cb = PublicInbox::Feed::generate_html_index({
                git_dir => $git_dir,
                max => 3
        });
-       like($feed, qr/html/, "feed is valid HTML :)");
+       require 't/common.perl';
+       like(stream_to_string($cb), qr/html/, "feed is valid HTML :)");
 }
 
 done_testing();