Skip to content

Commit 27c57f2

Browse files
ungpsdscho
authored andcommitted
stash: rename test cases to be more descriptive
Rename some test cases' labels to be more descriptive and under 80 characters per line. Signed-off-by: Paul-Sebastian Ungureanu <ungureanupaulsebastian@gmail.com>
1 parent 57b7e4e commit 27c57f2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

t/t3903-stash.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ test_expect_success 'stash show -p - no stashes on stack, stash-like argument' '
604604
test_cmp expected actual
605605
'
606606

607-
test_expect_success 'stash drop - fail early if specified stash is not a stash reference' '
607+
test_expect_success 'drop: fail early if specified stash is not a stash ref' '
608608
git stash clear &&
609609
test_when_finished "git reset --hard HEAD && git stash clear" &&
610610
git reset --hard &&
@@ -618,7 +618,7 @@ test_expect_success 'stash drop - fail early if specified stash is not a stash r
618618
git reset --hard HEAD
619619
'
620620

621-
test_expect_success 'stash pop - fail early if specified stash is not a stash reference' '
621+
test_expect_success 'pop: fail early if specified stash is not a stash ref' '
622622
git stash clear &&
623623
test_when_finished "git reset --hard HEAD && git stash clear" &&
624624
git reset --hard &&
@@ -682,7 +682,7 @@ test_expect_success 'invalid ref of the form "n", n >= N' '
682682
git stash drop
683683
'
684684

685-
test_expect_success 'stash branch should not drop the stash if the branch exists' '
685+
test_expect_success 'branch: do not drop the stash if the branch exists' '
686686
git stash clear &&
687687
echo foo >file &&
688688
git add file &&
@@ -693,7 +693,7 @@ test_expect_success 'stash branch should not drop the stash if the branch exists
693693
git rev-parse stash@{0} --
694694
'
695695

696-
test_expect_success 'stash branch should not drop the stash if the apply fails' '
696+
test_expect_success 'branch: should not drop the stash if the apply fails' '
697697
git stash clear &&
698698
git reset HEAD~1 --hard &&
699699
echo foo >file &&
@@ -707,7 +707,7 @@ test_expect_success 'stash branch should not drop the stash if the apply fails'
707707
git rev-parse stash@{0} --
708708
'
709709

710-
test_expect_success 'stash apply shows status same as git status (relative to current directory)' '
710+
test_expect_success 'apply: show same status as git status (relative to ./)' '
711711
git stash clear &&
712712
echo 1 >subdir/subfile1 &&
713713
echo 2 >subdir/subfile2 &&
@@ -1048,7 +1048,7 @@ test_expect_success 'stash push -p with pathspec shows no changes only once' '
10481048
test_i18ncmp expect actual
10491049
'
10501050

1051-
test_expect_success 'stash push with pathspec shows no changes when there are none' '
1051+
test_expect_success 'push <pathspec>: show no changes when there are none' '
10521052
>foo &&
10531053
git add foo &&
10541054
git commit -m "tmp" &&
@@ -1058,7 +1058,7 @@ test_expect_success 'stash push with pathspec shows no changes when there are no
10581058
test_i18ncmp expect actual
10591059
'
10601060

1061-
test_expect_success 'stash push with pathspec not in the repository errors out' '
1061+
test_expect_success 'push: <pathspec> not in the repository errors out' '
10621062
>untracked &&
10631063
test_must_fail git stash push untracked &&
10641064
test_path_is_file untracked

0 commit comments

Comments
 (0)