Diff options
Diffstat (limited to 'tests/t0111-atom.sh')
| -rwxr-xr-x | tests/t0111-atom.sh | 6 |
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 |
