Showing 1 changed files with 16 additions and 1 deletions
+16 -1
xt/user.t
... ...
@@ -345,7 +345,22 @@ note 'User Account Settings';
345 345
       # Change description
346 346
       $t->post_ok("/kimoto1/t1/settings?op=change-description", form => {description => 'あああ'});
347 347
       $t->content_like(qr/Description is saved/);
348
-      #$t->content_like(qr/あああ/);
348
+      $t->content_like(qr/あああ/);
349
+    }
350
+    
351
+    note 'Change default branch';
352
+    {
353
+      # Default branch default
354
+      $t->get_ok('/kimoto1/t1/settings');
355
+      $t->content_like(qr/master/);
356
+      
357
+      # Change default branch
358
+      my $cmd = "git --git-dir=$rep_home/kimoto1/t2.git branch b1";
359
+      system($cmd) == 0 or die "Can't execute git branch";
360
+      $t->get_ok('/kimoto1/t2/settings');
361
+      $t->content_like(qr/b1/);
362
+      $t->post_ok("/kimoto1/t2/settings?op=default-branch", form => {'default-branch' => 'b1'});
363
+      $t->content_like(qr/Default branch is changed to b1/);
349 364
     }
350 365
   }
351 366
 }