Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Move the feed link check in with the feed tests
It asks for a log page, and the index never carries a feed link.
Diffstat (limited to 'tests/t0111-atom.sh')
-rwxr-xr-xtests/t0111-atom.sh6
1 file changed, 6 insertions, 0 deletions
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