about summary refs log tree commit homepage
path: root/t/plack.t
diff options
context:
space:
mode:
Diffstat (limited to 't/plack.t')
-rw-r--r--t/plack.t13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/plack.t b/t/plack.t
index 14c9b657..9901186b 100644
--- a/t/plack.t
+++ b/t/plack.t
@@ -240,6 +240,19 @@ EOF
                 is(206, $res->code, 'got partial another response');
                 is($res->content, substr($orig, 5), 'partial body OK past end');
         });
+
+        # things which should fail
+        test_psgi($app, sub {
+                my ($cb) = @_;
+
+                my $res = $cb->(PUT('/'));
+                is(405, $res->code, 'no PUT to / allowed');
+                $res = $cb->(PUT('/test/'));
+                is(405, $res->code, 'no PUT /$INBOX allowed');
+
+                # TODO
+                # $res = $cb->(GET('/'));
+        });
 }
 
 done_testing();