]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/feed.t
treewide: "require" + "use" cleanup and docs
[public-inbox.git] / t / feed.t
index daf97a7253a5b37afa3e8fc3019213cb78aaf910..ec8a5a42e9ae3ee635a6f592e64e8789efd66bfb 100644 (file)
--- a/t/feed.t
+++ b/t/feed.t
@@ -5,12 +5,10 @@ use warnings;
 use Test::More;
 use Email::MIME;
 use PublicInbox::Feed;
-use PublicInbox::Git;
 use PublicInbox::Import;
-use PublicInbox::Config;
 use PublicInbox::Inbox;
 my $have_xml_feed = eval { require XML::Feed; 1 };
-require './t/common.perl';
+use PublicInbox::TestCommon;
 
 sub string_feed {
        my $res = PublicInbox::Feed::generate($_[0]);
@@ -29,7 +27,7 @@ my $ibx = PublicInbox::Inbox->new({
        address => 'test@example',
        name => 'testbox',
        inboxdir => $git_dir,
-       url => 'http://example.com/test',
+       url => [ 'http://example.com/test' ],
        feedmax => 3,
 });
 my $git = $ibx->git;