]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/filter_vger.t
t/*.t: reduce dependency on Email::MIME APIs
[public-inbox.git] / t / filter_vger.t
index 0f0562ed855078029ad497c01b4a3e1c409212c9..9d71f16d03c8463980f4742ad21f3be277d4be6d 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 use Test::More;
-use Email::MIME;
+use PublicInbox::MIME;
 use_ok 'PublicInbox::Filter::Vger';
 
 my $f = PublicInbox::Filter::Vger->new;
@@ -21,7 +21,7 @@ More majordomo info at  http://vger.kernel.org/majordomo-info.html
 Please read the FAQ at  http://www.tux.org/lkml/
 EOF
 
-       my $mime = Email::MIME->new($lkml);
+       my $mime = PublicInbox::MIME->new($lkml);
        $mime = $f->delivery($mime);
        is("keep this\n", $mime->body, 'normal message filtered OK');
 }
@@ -37,7 +37,7 @@ the body of a message to majordomo@vger.kernel.org
 More majordomo info at  http://vger.kernel.org/majordomo-info.html
 EOF
 
-       my $mime = Email::MIME->new($no_nl);
+       my $mime = PublicInbox::MIME->new($no_nl);
        $mime = $f->delivery($mime);
        is('OSX users :P', $mime->body, 'missing trailing LF in original OK');
 }