Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Test the author and age of a lightweight tag row
| -rwxr-xr-x | tests/t0102-summary.sh | 10 |
1 file changed, 10 insertions, 0 deletions
diff --git a/tests/t0102-summary.sh b/tests/t0102-summary.sh index bdf3a36..b31d476 100755 --- a/tests/t0102-summary.sh +++ b/tests/t0102-summary.sh @@ -218,4 +218,14 @@ test_expect_success 'the tag table heads its second column for what it holds' ' test_grep "<tr class=.tag.><td><a href=./none/tag/?h=[a-z]*.>[a-z]*</a></td><td><span class=.snapshot.><a href=./none/snapshot/none-[a-z]*\.tar.>" tmp ' +# A lightweight tag has no tagger, so its row takes the author and the date +# of the commit it names. +test_expect_success 'a lightweight tag row shows its commit author and age' ' + mkrepo repos/light 1 && + git -C repos/light tag light && + cgitrc_repo lightrc light && + cgit_ok lightrc "url=light/refs/tags" >tmp && + test_grep "<tr class=.tag.><td><a href=./light/tag/?h=light.>light</a></td><td><a href=[^>]*>commit [0-9a-f]*\.\.\.</a></td><td class=.col-author.>A U Thor</td><td><time class=.age-years. datetime=.2005-04-01T11:14:15Z." tmp +' + test_done |
