]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/html_index.t
update copyright headers and email addresses
[public-inbox.git] / t / html_index.t
index 690368f16aca39fd887ab9ae9837125e19f9ffe8..50f5ae5eeffc9628e7e31bba283f11de67ea599d 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014, Eric Wong <normalperson@yhbt.net> and all contributors
+# Copyright (C) 2014-2015 all contributors <meta@public-inbox.org>
 # License: AGPLv3 or later (https://www.gnu.org/licenses/agpl-3.0.txt)
 use strict;
 use warnings;
@@ -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();