... | ... |
@@ -410,6 +410,25 @@ note 'fork'; |
410 | 410 |
$t->content_unlike(qr/Repository is forked from/); |
411 | 411 |
} |
412 | 412 |
|
413 |
+note 'Network'; |
|
414 |
+{ |
|
415 |
+ my $app = Gitprep->new; |
|
416 |
+ my $t = Test::Mojo->new($app); |
|
417 |
+ $t->ua->max_redirects(3); |
|
418 |
+ |
|
419 |
+ $t->get_ok("/kimoto1/t2/network"); |
|
420 |
+ $t->content_like(qr/Members of the t2/); |
|
421 |
+ $t->content_like(qr/My branch.*kimoto1.*t2.*master/s); |
|
422 |
+ $t->content_like(qr/Member branch.*kimoto2.*t2.*master/s); |
|
423 |
+ |
|
424 |
+ note 'Graph'; |
|
425 |
+ { |
|
426 |
+ $t->get_ok("/kimoto1/t2/network/graph/master...kimoto2/t2/master"); |
|
427 |
+ $t->content_like(qr/Graph/); |
|
428 |
+ $t->content_like(qr/first commit/); |
|
429 |
+ } |
|
430 |
+} |
|
431 |
+ |
|
413 | 432 |
note 'Delete branch'; |
414 | 433 |
{ |
415 | 434 |
my $app = Gitprep->new; |