about summary refs log tree commit homepage
path: root/t/mda.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-04-09 22:42:38 +0000
committerEric Wong <e@80x24.org>2014-04-09 22:42:38 +0000
commit0db21f64f5e9a53185674badfcf5776c1ad964b3 (patch)
tree19508f5fe7ef5548c41da85b0479bf2a6aadf54d /t/mda.t
parentd2d769298498abe88f3256cf6609097d1ce74d42 (diff)
downloadpublic-inbox-0db21f64f5e9a53185674badfcf5776c1ad964b3.tar.gz
While we're at it, write some quick tests.
Diffstat (limited to 't/mda.t')
-rw-r--r--t/mda.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/mda.t b/t/mda.t
index 755864ca..de30b125 100644
--- a/t/mda.t
+++ b/t/mda.t
@@ -64,6 +64,12 @@ EOF
                 local $ENV{GIT_DIR} = $maindir;
                 my $rev = `git rev-list HEAD`;
                 like($rev, qr/\A[a-f0-9]{40}/, "good revision committed");
+                chomp $rev;
+                my $cmt = `git cat-file commit $rev`;
+                like($cmt, qr/^author Me <me\@example\.com> 0 \+0000\n/m,
+                        "author info set correctly");
+                like($cmt, qr/^committer test <test-public\@example\.com>/m,
+                        "committer info set correctly");
         }
 
         # ensure failures work