From 3c0a392a264755e0cad5c517788d38e44f35bd56 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 14:58:10 -0700 Subject: Move the feed link check in with the feed tests It asks for a log page, and the index never carries a feed link. --- tests/t0111-atom.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/t0111-atom.sh') diff --git a/tests/t0111-atom.sh b/tests/t0111-atom.sh index 443ac77..608ab78 100755 --- a/tests/t0111-atom.sh +++ b/tests/t0111-atom.sh @@ -57,4 +57,10 @@ test_expect_success 'a path with pathspec magic is refused' ' grep "^Status: 200" tmp ' +test_expect_success 'the feed link encodes the repository and the branch' ' + cgitrc_copy feedrc && + CGIT_CONFIG="$PWD/feedrc" HTTP_HOST=example.org QUERY_STRING="url=foo%2Bbar/log/&h=1%2B2" cgit >tmp && + grep "title=.Atom feed. href=.http://example.org/foo%2Bbar/atom/?h=1%2B2." tmp +' + test_done -- cgit