neocgit

a more 'modern' version of cgit
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/neocgit

commit 1cb8b494a5b83fdb87a2d9cd6282a05143661db1
parent 792f813d342013124ce40142fef4afee3ff00df3
Author: Jason A. Donenfeld <Jason@zx2c4.com>
Date:   Wed, 17 Oct 2012 17:17:48 +0200

tests: check for proper html entity

Since we're now properly writing ampersand literals as &amp; instead of
as a plain &, we need to update the test accordingly.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>

Diffstat:
Mtests/t0103-log.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/t0103-log.sh b/tests/t0103-log.sh @@ -17,7 +17,7 @@ run_test 'generate "with%20space/log?qt=grep&q=commit+1"' ' ' run_test 'find commit 1' 'grep -e "commit 1" trash/tmp' run_test 'find link with %20 in path' 'grep -e "/with%20space/log/?qt=grep" trash/tmp' -run_test 'find link with + in arg' 'grep -e "/log/?qt=grep&q=commit+1" trash/tmp' +run_test 'find link with + in arg' 'grep -e "/log/?qt=grep&amp;q=commit+1" trash/tmp' run_test 'no links with space in path' '! grep -e "href=./with space/" trash/tmp' run_test 'no links with space in arg' '! grep -e "q=commit 1" trash/tmp' run_test 'commit 2 is not visible' '! grep -e "commit 2" trash/tmp'