diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Ship the example tracker links commented out
An unedited copy sent every #123, Closes: and Bug: mark to
bugs.example.com, a link that is wrong for every site.
Diffstat (limited to 'tests/t0503-link-commits.sh')
| -rwxr-xr-x | tests/t0503-link-commits.sh | 13 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 7 insertions, 6 deletions
diff --git a/tests/t0503-link-commits.sh b/tests/t0503-link-commits.sh index d977517..fc7d618 100755 --- a/tests/t0503-link-commits.sh +++ b/tests/t0503-link-commits.sh @@ -1,10 +1,10 @@ #!/bin/sh # Checks link-commits.lua, the shipped commit-filter, whose configuration as -# shipped links bare object names to ./?id= and issue marks like #123 to -# bugs.example.com. The unit checks cover the matching rules under every -# suitable standalone Lua, and a commit whose message carries one of each is -# then rendered through cgit itself. +# shipped links bare object names to ./?id= and leaves issue marks like #123 +# as text until a tracker is set up. The unit checks cover the matching rules +# under every suitable standalone Lua, and a commit whose message carries one +# of each is then rendered through cgit itself. test_description='Check the shipped link-commits extension' CGIT_TEST_NO_CREATE_REPOS=YesPlease @@ -46,9 +46,10 @@ test_expect_success 'point cgit at it through the commit filter' ' EOF ' -test_expect_success CGIT_LUA 'the issue mark links out on the commit page' ' +test_expect_success CGIT_LUA 'the issue mark stays text on the commit page' ' cgit_url "linky/commit/" >tmp && - grep "bugs.example.com/?bug=123.>#123</a>" tmp + grep "fix #123 near" tmp && + ! grep "bugs.example.com" tmp ' test_expect_success CGIT_LUA 'the object name links to its own page' ' |
