about summary refs log tree commit homepage
path: root/t/view.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-05-19 00:31:50 +0000
committerEric Wong <e@80x24.org>2016-05-19 19:24:21 +0000
commit21a5cfeb30afef90ca888d425b62651466eed9e3 (patch)
treea39f11d0538cada517b8dd0bc3696328c6cf2e4e /t/view.t
parent4f7977b42aab1595b3a45b41e19499b38c46c8cc (diff)
downloadpublic-inbox-21a5cfeb30afef90ca888d425b62651466eed9e3.tar.gz
msg_iter lets us know the index of the attachment,
allow us to make more sensible labels and in a future
commit, hyperlinks to download attachments.
Diffstat (limited to 't/view.t')
-rw-r--r--t/view.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/view.t b/t/view.t
index c6b1e7df..a70c52d8 100644
--- a/t/view.t
+++ b/t/view.t
@@ -72,7 +72,7 @@ EOF
         );
 
         my $html = PublicInbox::View::msg_html(undef, $mime);
-        like($html, qr/hi\n-+ part #2 -+\nbye\n/, "multipart split");
+        like($html, qr/hi\n.*-- Attachment #2.*\nbye\n/s, "multipart split");
 }
 
 # multipart email with attached patch
@@ -101,7 +101,7 @@ EOF
         );
 
         my $html = PublicInbox::View::msg_html(undef, $mime);
-        like($html, qr!see attached patch\n-+ foo\.patch -+\n--- a/file\n!,
+        like($html, qr!.*Attachment #2: foo\.patch --!,
                 "parts split with filename");
 }