X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fpsgi_v2.t;fp=t%2Fpsgi_v2.t;h=bc26a1129364b0543c1e2995c170405a36d53755;hb=62d1a4da996bd9a664be954f71f78fe052f9df16;hp=57017de1afc4e941caa459af9278c758437086a3;hpb=4bd22e9528484c5d964ecba277fd6a7d5e023461;p=public-inbox.git diff --git a/t/psgi_v2.t b/t/psgi_v2.t index 57017de1..bc26a112 100644 --- a/t/psgi_v2.t +++ b/t/psgi_v2.t @@ -9,7 +9,7 @@ use PublicInbox::MIME; use PublicInbox::Config; use PublicInbox::MID qw(mids); require_mods(qw(DBD::SQLite Search::Xapian HTTP::Request::Common Plack::Test - URI::Escape Plack::Builder)); + URI::Escape Plack::Builder Email::MIME)); use_ok($_) for (qw(HTTP::Request::Common Plack::Test)); use_ok 'PublicInbox::WWW'; use_ok 'PublicInbox::V2Writable'; @@ -226,11 +226,11 @@ test_psgi(sub { $www->call(@_) }, sub { # ensure conflicted attachments can be resolved foreach my $body (qw(old new)) { my $parts = [ - PublicInbox::MIME->create( + Email::MIME->create( attributes => { content_type => 'text/plain' }, body => 'blah', ), - PublicInbox::MIME->create( + Email::MIME->create( attributes => { filename => 'attach.txt', content_type => 'text/plain', @@ -238,7 +238,7 @@ test_psgi(sub { $www->call(@_) }, sub { body => $body ) ]; - $mime = PublicInbox::MIME->create( + $mime = Email::MIME->create( parts => $parts, header_str => [ From => 'root@z', 'Message-ID' => '',