Diff options
Diffstat (limited to 'tests/t0113-tag.sh')
-rwxr-xr-xtests/t0113-tag.sh12
1 file changed, 4 insertions, 8 deletions
diff --git a/tests/t0113-tag.sh b/tests/t0113-tag.sh
index ec6f3c3..b91c7e6 100755
--- a/tests/t0113-tag.sh
+++ b/tests/t0113-tag.sh
@@ -60,8 +60,8 @@ test_expect_success 'a tag of anything but a commit offers no download' '
'
# git reads the signature off the end of a tag's message, so a block shaped
-# like one is enough to show it is folded away, with nothing to verify.
-test_expect_success 'a signed tag folds its signature after the message' '
+# like one is enough, with nothing to verify.
+test_expect_success 'a signed tag shows its signature in the message' '
(
cd repos/foo &&
{
@@ -82,12 +82,8 @@ test_expect_success 'a signed tag folds its signature after the message' '
) &&
cgit_url "foo/tag/&h=signed" >tmp &&
tr -d "\n" <tmp >flat &&
- grep "<div class=.commit-msg.>Notes.</div><details class=.signature.><summary>Signature</summary><pre>-----BEGIN PGP SIGNATURE-----iQEzBAABCAAdFiEE-----END PGP SIGNATURE-----</pre></details>" flat
-'
-
-test_expect_success 'an unsigned tag has no fold' '
- cgit_url "foo/tag/&h=v1.0" >tmp &&
- ! grep "details class=.signature." tmp
+ grep "<div class=.commit-msg.>Notes.-----BEGIN PGP SIGNATURE-----iQEzBAABCAAdFiEE-----END PGP SIGNATURE-----</div>" flat &&
+ ! grep "<details" tmp
'
test_done