about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-05-02 23:16:37 +0000
committerEric Wong <e@80x24.org>2014-05-02 23:16:37 +0000
commita1331e538ed8fff6e9554de553a2869954f54167 (patch)
tree7a255c7119bc6f7a775e441ba33f5387fd92441d /t
parent63ede74cfe5817642a4211419ae2bd3838260237 (diff)
downloadpublic-inbox-a1331e538ed8fff6e9554de553a2869954f54167.tar.gz
These views are not OO, so the "as_" prefix makes little sense
and "as_html" conflicts with Hval, which is OO.
Diffstat (limited to 't')
-rw-r--r--t/view.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/view.t b/t/view.t
index 87f8eeee..10a182b3 100644
--- a/t/view.t
+++ b/t/view.t
@@ -34,7 +34,7 @@ EOF
                 body => $body,
         );
         $s = Email::MIME->new($s->as_string);
-        my $html = PublicInbox::View->as_html($s);
+        my $html = PublicInbox::View->msg_html($s);
 
         # ghetto tests
         like($html, qr!<a href="\.\./m/hello%40!s, "MID link present");
@@ -45,7 +45,7 @@ EOF
 
         # short page
         my $pfx = "http://example.com/test/f";
-        my $short = PublicInbox::View->as_html($s, $pfx);
+        my $short = PublicInbox::View->msg_html($s, $pfx);
         like($short, qr!<a href="hello%40!s, "MID link present");
         like($short, qr/\n&gt; keep this inline/,
                 "short quoted text is inline");
@@ -76,7 +76,7 @@ EOF
                 parts => $parts,
         );
 
-        my $html = PublicInbox::View->as_html($mime);
+        my $html = PublicInbox::View->msg_html($mime);
         like($html, qr/hi\n-+ part #2 -+\nbye\n/, "multipart split");
 }
 
@@ -105,7 +105,7 @@ EOF
                 parts => $parts,
         );
 
-        my $html = PublicInbox::View->as_html($mime);
+        my $html = PublicInbox::View->msg_html($mime);
         like($html, qr!see attached patch\n-+ foo\.patch -+\n--- a/file\n!,
                 "parts split with filename");
 }