diff options
author | Eric Wong <e@80x24.org> | 2016-05-19 00:31:50 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-05-19 19:24:21 +0000 |
commit | 21a5cfeb30afef90ca888d425b62651466eed9e3 (patch) | |
tree | a39f11d0538cada517b8dd0bc3696328c6cf2e4e /t/view.t | |
parent | 4f7977b42aab1595b3a45b41e19499b38c46c8cc (diff) | |
download | public-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.t | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); } |