about summary refs log tree commit diff
path: root/t/006_emailer.t
diff options
context:
space:
mode:
authorJonathan "Duke" Leto <jonathan@leto.net>2011-02-15 14:18:37 -0800
committerJonathan "Duke" Leto <jonathan@leto.net>2011-02-15 14:18:37 -0800
commitb81fd244c274eab2f19aa5c8cda7edc133104044 (patch)
tree7e0e13801018a0be810e68ac1a70c93b312a4d7d /t/006_emailer.t
parentreturn empty list if project is not defined (diff)
downloadjitterbug-b81fd244c274eab2f19aa5c8cda7edc133104044.tar.gz
Only put the short commit message in email subjects
The full commit message will still be in the body of the email.
Diffstat (limited to 't/006_emailer.t')
-rw-r--r--t/006_emailer.t4
1 files changed, 3 insertions, 1 deletions
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