Showing 1 changed files with 5 additions and 0 deletions
+5
xt/user.t
... ...
@@ -420,6 +420,11 @@ note 'Delete branch';
420 420
   $t->get_ok("/kimoto1/t2/branches");
421 421
   $t->content_like(qr/Branches/);
422 422
   $t->content_unlike(qr/Delete branch/);
423
+  
424
+  # Can't delete branch when no login
425
+  $t->post_ok('/kimoto1/t2/branches?op=delete', form => {branch => 'tmp_branch'})
426
+    ->content_like(qr/Users/);
427
+  
423 428
 
424 429
   # Login as kimoto1
425 430
   $t->post_ok('/_login?op=login', form => {id => 'kimoto1', password => 'a'});