Diff options
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/t0106-commit.sh | 7 |
1 file changed, 7 insertions, 0 deletions
diff --git a/tests/t0106-commit.sh b/tests/t0106-commit.sh index 0cfc5d3..6d08645 100755 --- a/tests/t0106-commit.sh +++ b/tests/t0106-commit.sh @@ -16,6 +16,13 @@ test_expect_success 'find parent link' ' test_grep "<th scope=.row.>parent</th><td colspan=.2. class=.oid.><div class=.spanning.><a href=./foo/commit/?id=$parent.>$parent</a>" tmp ' +test_expect_success 'subject links name a parent by its subject' ' + cgitrc_copy subjectrc enable-subject-links=1 && + parent=$(git -C repos/foo rev-parse master~1) && + cgit_ok subjectrc "url=foo/commit" >tmp && + test_grep "<th scope=.row.>parent</th><td colspan=.2. class=.oid.><div class=.spanning.><a href=./foo/commit/?id=$parent.>commit 4</a>" tmp +' + test_expect_success 'find commit subject' ' grep "<div class=.commit-subject.>commit 5<" tmp ' |
