Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce 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.
| -rwxr-xr-x | tests/t0101-index.sh | 6 | |
| -rwxr-xr-x | tests/t0111-atom.sh | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/t0101-index.sh b/tests/t0101-index.sh index c8b9fb7..2e49ed8 100755 --- a/tests/t0101-index.sh +++ b/tests/t0101-index.sh @@ -39,12 +39,6 @@ test_expect_success 'each css and js entry gets a link of its own' ' grep "/b.js" scripts ' -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 -' - # The description limit counts bytes, so a cut has to land between # characters rather than leave half of one on the page. test_expect_success 'a cut description keeps whole characters' ' 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 |
