t1300: test "git config --get-all" more thoroughly

We check that we can "--get-all" a multi-valued variable, but we do not actually confirm that the output is sensible. Doing so reveals that it works fine, but this will help us ensure we do not have regressions in the next few patches, which will touch this area. Signed-off-by: Jeff King <peff@peff.net>

Jeff King committed Oct 23, 2012 at 18:05 UTC cb20b69166786210bcad406c192763f90be1639a
1 file changed +7 -2
t/t1300-repo-config.sh
+7 -2
@@ -258,8 +258,13 @@ test_expect_success 'ambiguous get' '
258 test_must_fail git config --get nextsection.nonewline
259 '
260
261 -test_expect_success 'get multivar' '
262 - git config --get-all nextsection.nonewline
261 +test_expect_success 'multi-valued get-all returns all' '
262 + cat >expect <<-\EOF &&
263 + wow
264 + wow2 for me
265 + EOF
266 + git config --get-all nextsection.nonewline >actual &&
267 + test_cmp expect actual
268 '
269
270 cat > expect << EOF