From b81fd244c274eab2f19aa5c8cda7edc133104044 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Tue, 15 Feb 2011 14:18:37 -0800 Subject: Only put the short commit message in email subjects The full commit message will still be in the body of the email. --- t/006_emailer.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 't/006_emailer.t') diff --git a/t/006_emailer.t b/t/006_emailer.t index 297644c..a13d5a4 100644 --- a/t/006_emailer.t +++ b/t/006_emailer.t @@ -23,7 +23,7 @@ sub setup { $project->mock('name', sub { 'ponie' }); $commit->mock('sha256', sub { 'c0decafe' }); - $commit->mock('content', sub { '{ "message" : "blargly blarg" }' } ); + $commit->mock('content', sub { '{ "message" : "blargly blarg\n\nLong message" }' } ); $task->mock('commit', sub { $commit }); $task->mock('project', sub { $project }); @@ -106,6 +106,8 @@ Result: FAIL Commit Message: blargly blarg +Long message + TAP Output: Copying lib/Math/Primality/AKS.pm -> blib/lib/Math/Primality/AKS.pm Copying lib/Math/Primality/BigPolynomial.pm -> blib/lib/Math/Primality/BigPolynomial.pm -- cgit 1.4.1