about summary refs log tree commit homepage
path: root/t/v2writable.t
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-04-21 21:16:12 +0000
committerEric Wong <e@yhbt.net>2020-04-22 18:22:40 +0000
commit62d1a4da996bd9a664be954f71f78fe052f9df16 (patch)
tree3fc45fcaccfc149b13fc6b7688017cb176852f25 /t/v2writable.t
parent4bd22e9528484c5d964ecba277fd6a7d5e023461 (diff)
downloadpublic-inbox-62d1a4da996bd9a664be954f71f78fe052f9df16.tar.gz
t/*.t: use Email::MIME->create over PublicInbox::MIME->create
PublicInbox::MIME only supports ->new, and is only different
from Email::MIME for old versions of Email::MIME.  In the
future, PublicInbox::MIME may not be a subclass of Email::MIME
at all.
Diffstat (limited to 't/v2writable.t')
-rw-r--r--t/v2writable.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/v2writable.t b/t/v2writable.t
index 8897062a..7e7560b3 100644
--- a/t/v2writable.t
+++ b/t/v2writable.t
@@ -8,7 +8,7 @@ use PublicInbox::ContentId qw(content_digest content_id);
 use PublicInbox::TestCommon;
 use Cwd qw(abs_path);
 require_git(2.6);
-require_mods(qw(DBD::SQLite Search::Xapian));
+require_mods(qw(DBD::SQLite Search::Xapian Email::MIME));
 local $ENV{HOME} = abs_path('t');
 use_ok 'PublicInbox::V2Writable';
 umask 007;
@@ -20,7 +20,7 @@ my $ibx = {
         -primary_address => 'test@example.com',
 };
 $ibx = PublicInbox::Inbox->new($ibx);
-my $mime = PublicInbox::MIME->create(
+my $mime = Email::MIME->create(
         header => [
                 From => 'a@example.com',
                 To => 'test@example.com',