Diff options
Diffstat (limited to 'tests/t0111-atom.sh')
-rwxr-xr-xtests/t0111-atom.sh10
1 file changed, 2 insertions, 8 deletions
diff --git a/tests/t0111-atom.sh b/tests/t0111-atom.sh
index ccc8a2f..443ac77 100755
--- a/tests/t0111-atom.sh
+++ b/tests/t0111-atom.sh
@@ -34,14 +34,8 @@ test_expect_success 'ten entries is the default ceiling' '
'
test_expect_success 'max-atom-items overrides the ceiling' '
- {
- echo "virtual-root=/" &&
- echo "cache-size=0" &&
- echo "max-atom-items=3" &&
- echo "repo.url=bar" &&
- echo "repo.path=$PWD/repos/bar/.git"
- } >atomrc &&
- CGIT_CONFIG="$PWD/atomrc" QUERY_STRING="url=bar/atom" cgit >tmp &&
+ cgitrc_repo atomrc bar max-atom-items=3 &&
+ cgit_rc atomrc "url=bar/atom" >tmp &&
strip_headers <tmp >feed &&
test $(grep -c "<entry>" feed) -eq 3
'