X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fhtml_index.t;h=51897532f26a3f71ceaf1d13ccbba70ff5536301;hb=e39585ee2bdcbeaab7b6bd33b3568021042d0879;hp=55aa6dc7f3a034fd4f8f70a9dccc262621853e22;hpb=3c313f9034aac96182e2efdc2f92c40803626f32;p=public-inbox.git diff --git a/t/html_index.t b/t/html_index.t index 55aa6dc7..51897532 100644 --- a/t/html_index.t +++ b/t/html_index.t @@ -1,9 +1,9 @@ -# Copyright (C) 2014-2019 all contributors +# Copyright (C) 2014-2020 all contributors # License: AGPL-3.0+ use strict; use warnings; use Test::More; -use Email::MIME; +use PublicInbox::MIME; use PublicInbox::Feed; use PublicInbox::Git; use PublicInbox::Import; @@ -22,7 +22,7 @@ my $im = PublicInbox::Import->new($git, 'tester', 'test@example'); # setup { - is(0, system(qw(git init -q --bare), $git_dir), "git init"); + $im->init_bare; my $prev = ""; foreach my $i (1..6) { @@ -32,7 +32,7 @@ my $im = PublicInbox::Import->new($git, 'tester', 'test@example'); $mid_line .= "In-Reply-To: $prev"; } $prev = $mid; - my $mime = Email::MIME->new(<new(< To: U $mid_line