about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-01-21 11:50:58 +0000
committerEric Wong <e@80x24.org>2017-01-21 11:52:16 +0000
commit5505b483b66dfa43d6e356502fca3eb58638447c (patch)
tree8f43e32c99234ba9417a7e6c4b4398e4aea55213 /t
parent5027b5fad0aa4a448e53eeba4027328dd528c918 (diff)
downloadpublic-inbox-5505b483b66dfa43d6e356502fca3eb58638447c.tar.gz
Commit messages are assumed to be displayed in a terminal
with a fixed width font, so we must preserve newlines and
all whitespace as-is so ASCII art may be displayed properly.
Diffstat (limited to 't')
-rw-r--r--t/repobrowse_git_atom.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/repobrowse_git_atom.t b/t/repobrowse_git_atom.t
index 4f0078eb..1f8e95e3 100644
--- a/t/repobrowse_git_atom.t
+++ b/t/repobrowse_git_atom.t
@@ -20,6 +20,8 @@ test_psgi($test->{app}, sub {
                 is($p->format, "Atom", "parsed atom feed");
                 is(scalar $p->entries, 6, "parsed six entries");
         }
+        like($body, qr!<pre\s*[^>]+>\* header:\n  add header</pre>!,
+                'body wrapped in <pre>');
 
         $res = $cb->(GET($req . '/'));
         my $sl = dechunk($res);