diff options
author | Eric Wong <e@80x24.org> | 2014-04-09 22:42:38 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-04-09 22:42:38 +0000 |
commit | 0db21f64f5e9a53185674badfcf5776c1ad964b3 (patch) | |
tree | 19508f5fe7ef5548c41da85b0479bf2a6aadf54d /t/mda.t | |
parent | d2d769298498abe88f3256cf6609097d1ce74d42 (diff) | |
download | public-inbox-0db21f64f5e9a53185674badfcf5776c1ad964b3.tar.gz |
While we're at it, write some quick tests.
Diffstat (limited to 't/mda.t')
-rw-r--r-- | t/mda.t | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |