Add some uncoverable comments
[plack-middleware-auth-complex.git] / t / Plack-Middleware-Auth-Complex.t
index 5b42232c64cc5c224d85f93d92fb6e6e2192d5c2..9fd5f0e5193ff5bda113628e35fc0efb757271fa 100644 (file)
@@ -2,7 +2,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 59;
+use Test::More tests => 61;
 BEGIN { $ENV{EMAIL_SENDER_TRANSPORT} = 'Test' }
 BEGIN { use_ok('Plack::Middleware::Auth::Complex') };
 
@@ -50,6 +50,7 @@ test_psgi $app, sub {
        is_http $cb->(POST '/'), 200, 'Anon', 'POST /';
        is_http $cb->(GET '/register'), 200, 'Anon', 'GET /register';
        set_auth 'user', 'password';
+       is_http $cb->(GET '/', Authorization => 'Hello'), 200, 'Anon', 'GET / with invalid Authorization';
        is_http $cb->(GET '/', Authorization => $auth), 200, 'Anon', 'GET / with bad user/pass';
        is_http $cb->(POST '/register'), 400, 'Missing parameter username', 'POST /register with no parameters';
        is_http $cb->(POST '/register', [@register_args, username => '???'] ), 400, 'Username must match (?^a:^\w{2,20}$)', 'POST /register with bad username';
This page took 0.010227 seconds and 4 git commands to generate.