Skip to content

Commit dc0f255

Browse files
committed
t/40-commit: Better names for tests
1 parent 98f1057 commit dc0f255

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

t/40-commit.t

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ make_test_repo() {
2525

2626
##### 1
2727

28-
start_test 'Check we fail when branch does not exist'
28+
start_test 'Fail when branch does not exist'
2929
make_test_repo
3030
test_equal "Invalid ref: refs/heads/testbr
3131
128" \
@@ -34,7 +34,7 @@ end_test
3434

3535
##### 2
3636

37-
start_test 'Check we fail when untracked files are in the working copy.'
37+
start_test 'Fail when untracked files are in the working copy.'
3838
make_test_repo
3939
$git branch $branch
4040
touch $repo/untracked
@@ -45,7 +45,7 @@ end_test
4545

4646
##### 3
4747

48-
start_test 'Check we fail when working copy is dirty'
48+
start_test 'Fail when working copy is dirty'
4949
make_test_repo
5050
$git branch $branch
5151
touch $repo/three
@@ -57,7 +57,7 @@ end_test
5757

5858
##### 4
5959

60-
start_test 'Check commit message'
60+
start_test 'Commit message correct'
6161

6262
make_test_repo
6363
$git branch $branch
@@ -73,7 +73,7 @@ end_test
7373

7474
##### 5
7575

76-
start_test 'Check commit'
76+
start_test 'Commit data correct'
7777

7878
make_test_repo
7979
$git branch $branch
@@ -92,7 +92,7 @@ end_test
9292

9393
##### 6
9494

95-
start_test 'Check commit with refs/heads/branchname'
95+
start_test 'Commit branchname has refs/heads prefix'
9696

9797
make_test_repo
9898
$git branch $branch
@@ -108,7 +108,7 @@ end_test
108108

109109
##### 7
110110

111-
start_test 'Check commit when script is run standalone'
111+
start_test 'Run script standalone (instead of as git subcommand)'
112112

113113
make_test_repo
114114
$git branch $branch
@@ -124,7 +124,7 @@ end_test
124124

125125
##### 8
126126

127-
start_test 'Check we do not commit if it would be an empty commit.'
127+
start_test 'No commit if commit would be empty'
128128
make_test_repo
129129
$git branch $branch
130130
echo bar > $files/one
@@ -138,7 +138,7 @@ end_test
138138

139139
##### 9
140140

141-
start_test 'Check reflog update'
141+
start_test 'Reflog is updated'
142142
make_test_repo
143143
$git branch $branch
144144
echo bar > $files/one

0 commit comments

Comments
 (0)