[Rt-commit] rt branch, 4.0/rfc822-attachment, updated. rt-4.0.0-212-gcfd2128

Thomas Sibley trs at bestpractical.com
Wed May 11 16:12:21 EDT 2011


The branch, 4.0/rfc822-attachment has been updated
       via  cfd2128fd386398119f29b524cf3662835410806 (commit)
      from  8364064ffc7f942add6f4c886e87acadf14f5c32 (commit)

Summary of changes:
 t/web/ticket_forward.t |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit cfd2128fd386398119f29b524cf3662835410806
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Wed May 11 16:12:18 2011 -0400

    Actually check the empty forward mail was sent

diff --git a/t/web/ticket_forward.t b/t/web/ticket_forward.t
index 37bd0cb..e4b53b7 100644
--- a/t/web/ticket_forward.t
+++ b/t/web/ticket_forward.t
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use RT::Test tests => 29;
+use RT::Test tests => 32;
 use File::Temp 'tempfile';
 use File::Spec;
 my ( $att_fh, $att_file ) =
@@ -96,5 +96,8 @@ diag "Foward Ticket without content" if $ENV{TEST_VERBOSE};
         button    => 'ForwardAndReturn'
     );
     $m->content_contains( 'Send email successfully', 'sent mail msg' );
+    my ($mail) = RT::Test->fetch_caught_mails;
+    like( $mail, qr/Subject: Fwd: \[example\.com #2\] test forward without content/, 'Subject field' );
+    like( $mail, qr/To: rt-test\@example\.com/,             'To field' );
+    like( $mail, qr/This is a forward of ticket #2/,        'content' );
 }
-

-----------------------------------------------------------------------


More information about the Rt-commit mailing list