about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/plack.t12
1 files changed, 10 insertions, 2 deletions
diff --git a/t/plack.t b/t/plack.t
index 04680b2a..a4f32457 100644
--- a/t/plack.t
+++ b/t/plack.t
@@ -62,16 +62,24 @@ EOF
                 require $psgi;
         };
 
+        test_psgi($app, sub {
+                my ($cb) = @_;
+                foreach my $u (qw(robots.txt favicon.ico .well-known/foo)) {
+                        my $res = $cb->(GET("http://example.com/$u"));
+                        is($res->code, 404, "$u is missing");
+                }
+        });
+
         # redirect with newsgroup
         test_psgi($app, sub {
                 my ($cb) = @_;
                 my $from = 'http://example.com/inbox.test';
                 my $to = 'http://example.com/test/';
                 my $res = $cb->(GET($from));
-                is($res->code, 301, 'is permanent redirect');
+                is($res->code, 301, 'newsgroup name is permanent redirect');
                 is($to, $res->header('Location'), 'redirect location matches');
                 $from .= '/';
-                is($res->code, 301, 'is permanent redirect');
+                is($res->code, 301, 'newsgroup name/ is permanent redirect');
                 is($to, $res->header('Location'), 'redirect location matches');
         });