Diff options
Diffstat (limited to 'tests/t0506-link-trailers.sh')
| -rwxr-xr-x | tests/t0506-link-trailers.sh | 10 |
1 file changed, 6 insertions, 4 deletions
diff --git a/tests/t0506-link-trailers.sh b/tests/t0506-link-trailers.sh index 03db63a..42c65fd 100755 --- a/tests/t0506-link-trailers.sh +++ b/tests/t0506-link-trailers.sh @@ -46,16 +46,18 @@ test_expect_success 'point cgit at it through the trailer filter' ' ' test_expect_success CGIT_LUA 'the Fixes object name links to its commit page' ' - cgit_url "linky/commit/" >tmp && - grep "<th scope=.row.>Fixes</th><td><a href=....id=1234567.>1234567</a> (.earlier.)</td>" tmp + cgit_ok_url "linky/commit/" >tmp && + test_grep "<th scope=.row.>Fixes</th><td><a href=....id=1234567.>1234567</a> (.earlier.)</td>" tmp ' test_expect_success CGIT_LUA 'the bare URL links to itself' ' - grep "<a href=.https://example.com/?a=1&b=2.>https://example.com/?a=1&b=2</a>" tmp + cgit_ok_url "linky/commit/" >tmp && + test_grep "<a href=.https://example.com/?a=1&b=2.>https://example.com/?a=1&b=2</a>" tmp ' test_expect_success CGIT_LUA 'the Closes mark stays text' ' - grep "<th scope=.row.>Closes</th><td>#45</td>" tmp + cgit_ok_url "linky/commit/" >tmp && + test_grep "<th scope=.row.>Closes</th><td>#45</td>" tmp ' test_done |
