[Jifty-commit] r5964 - in jifty/trunk: lib/Jifty/Test

Jifty commits jifty-commit at lists.jifty.org
Thu Oct 23 12:28:58 EDT 2008


Author: sartak
Date: Thu Oct 23 12:28:58 2008
New Revision: 5964

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Test/Email.pm

Log:
 r74498 at onn:  sartak | 2008-10-23 12:28:10 -0400
 Include a test for how many emails were sent in mail_ok


Modified: jifty/trunk/lib/Jifty/Test/Email.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Test/Email.pm	(original)
+++ jifty/trunk/lib/Jifty/Test/Email.pm	Thu Oct 23 12:28:58 2008
@@ -44,6 +44,8 @@
     $code->();
     local $Test::Builder::Level = $Test::Builder::Level + 1;
     my @msgs = Jifty::Test->messages;
+    is(@msgs, @_, "Sent exactly " . @_ . " emails");
+
     for my $spec (@_) {
         my $msg = shift @msgs
             or ok(0, 'Expecting message but none found.'), next;


More information about the Jifty-commit mailing list