... | ... |
@@ -3,7 +3,7 @@ use Mojo::Base -base; |
3 | 3 |
|
4 | 4 |
use Carp 'croak'; |
5 | 5 |
use Encode 'encode'; |
6 |
-use File::Copy 'move'; |
|
6 |
+use File::Copy qw/move copy/; |
|
7 | 7 |
use File::Path qw/mkpath rmtree/; |
8 | 8 |
use File::Temp (); |
9 | 9 |
|
... | ... |
@@ -589,7 +589,11 @@ sub _fork_rep { |
589 | 589 |
$to_rep |
590 | 590 |
); |
591 | 591 |
system(@cmd) == 0 |
592 |
- or croak "Can't fork repository: @cmd"; |
|
592 |
+ or croak "Can't fork repository(_fork_rep): @cmd"; |
|
593 |
+ |
|
594 |
+ # Copy description |
|
595 |
+ copy "$rep/description", "$to_rep/description" |
|
596 |
+ or croak "Can't copy description file(_fork_rep)"; |
|
593 | 597 |
} |
594 | 598 |
|
595 | 599 |
sub _rename_project { |
... | ... |
@@ -344,10 +344,15 @@ note 'User Account Settings'; |
344 | 344 |
|
345 | 345 |
note 'Change description'; |
346 | 346 |
{ |
347 |
- # Change description |
|
347 |
+ # Change description(t1) |
|
348 | 348 |
$t->post_ok("/kimoto1/t1/settings?op=change-description", form => {description => 'あああ'}); |
349 | 349 |
$t->content_like(qr/Description is saved/); |
350 | 350 |
$t->content_like(qr/あああ/); |
351 |
+ |
|
352 |
+ # Change description(t2) |
|
353 |
+ $t->post_ok("/kimoto1/t2/settings?op=change-description", form => {description => 'いいい'}); |
|
354 |
+ $t->content_like(qr/Description is saved/); |
|
355 |
+ $t->content_like(qr/いいい/); |
|
351 | 356 |
} |
352 | 357 |
|
353 | 358 |
note 'Change default branch'; |
... | ... |
@@ -391,11 +396,11 @@ note 'fork'; |
391 | 396 |
# Fork kimoto1/t2 |
392 | 397 |
$t->get_ok("/kimoto1/t2/fork"); |
393 | 398 |
$t->content_like(qr#Repository is forked from /kimoto1/t2#); |
399 |
+ $t->content_like(qr/いいい/); |
|
394 | 400 |
|
395 | 401 |
# Fork kimoto1/t2 again |
396 | 402 |
$t->get_ok("/kimoto1/t2/fork"); |
397 | 403 |
$t->content_like(qr/forked from/); |
398 | 404 |
$t->content_like(qr#kimoto1/t2#); |
399 | 405 |
$t->content_unlike(qr/Repository is forked from/); |
400 |
- |
|
401 | 406 |
} |