about summary refs log tree commit homepage
path: root/t/plack.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-07-07 01:39:37 +0000
committerEric Wong <e@80x24.org>2016-07-07 01:44:10 +0000
commita380c9b55b39a4db6a21131332a2a5629428dded (patch)
tree9a279e2b0809cda1ff978a3f584c5da7b4ac8608 /t/plack.t
parent8e85257577ee4d7d49e59f048852d9d4ac6f8172 (diff)
downloadpublic-inbox-a380c9b55b39a4db6a21131332a2a5629428dded.tar.gz
We now generate all of our HTML using WwwStream which
forces us to have consistent headers and footers in
the HTML itself.

This also makes the search-capable vs search-less installs
go to the new.html endpoint to maintain consistency
(in case an admin decides to enable Xapian).
Diffstat (limited to 't/plack.t')
-rw-r--r--t/plack.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/plack.t b/t/plack.t
index 40298e58..db3a9b23 100644
--- a/t/plack.t
+++ b/t/plack.t
@@ -120,9 +120,9 @@ EOF
         test_psgi($app, sub {
                 my ($cb) = @_;
                 my $atomurl = 'http://example.com/test/new.atom';
-                my $res = $cb->(GET('http://example.com/test/'));
+                my $res = $cb->(GET('http://example.com/test/new.html'));
                 is(200, $res->code, 'success response received');
-                like($res->content, qr!href="\Q$atomurl\E"!,
+                like($res->content, qr!href="new\.atom"!,
                         'atom URL generated');
                 like($res->content, qr!href="blah%40example\.com/"!,
                         'index generated');