t6300: use test_atom for some un-modern tests
commit1d094db936331abc42d859269181272a8539c7ae
authorJeff King <peff@peff.net>
Sun, 24 Jan 2016 23:08:18 +0000 (24 18:08 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Jan 2016 20:33:45 +0000 (25 12:33 -0800)
treea2e4c1ee2e6a3a6368dee0d4cd42fd57868f8b90
parent754884255bb580df159e58defa81cdd30b5c430c
t6300: use test_atom for some un-modern tests

Because this script has to test so many formatters, we have
the nice "test_atom" helper, but we don't use it
consistently. Let's do so. This is shorter, gets rid of some
tests that have their "expected" setup outside of a
test_expect_success block, and lets us organize the changes
better (e.g., putting "refname:short" near "refname").

We also expand the "%(push)" tests a little to match the
"%(upstream)" ones.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6300-for-each-ref.sh