[Rt-commit] rt branch, 4.0/rfc822-attachment, updated. rt-4.0.0-211-g8364064

Thomas Sibley trs at bestpractical.com
Wed May 11 13:35:16 EDT 2011


The branch, 4.0/rfc822-attachment has been updated
       via  8364064ffc7f942add6f4c886e87acadf14f5c32 (commit)
       via  486379c6c24c31e381b62c36ecd141861a748a42 (commit)
      from  9a57f9584dab85bedd440c980c5128cdcb989503 (commit)

Summary of changes:
 t/mail/rfc822-attachment.t |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

- Log -----------------------------------------------------------------
commit 486379c6c24c31e381b62c36ecd141861a748a42
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Wed May 11 13:34:51 2011 -0400

    Move content_as_mime helper function back to the bottom

diff --git a/t/mail/rfc822-attachment.t b/t/mail/rfc822-attachment.t
index 82847bb..1c36d1c 100644
--- a/t/mail/rfc822-attachment.t
+++ b/t/mail/rfc822-attachment.t
@@ -6,14 +6,6 @@ my ($baseurl, $m) = RT::Test->started_ok;
 
 use MIME::Entity;
 
-sub content_as_mime {
-    my $entity = shift;
-    my ( $status, $id ) = RT::Test->send_via_mailgate($entity);
-    is( $status >> 8, 0, "The mail gateway exited normally" );
-    ok( $id, "created ticket" );
-    return RT::Test->last_ticket->Transactions->First->ContentAsMIME;
-}
-
 diag "simple rfc822 attachment";
 {
 
@@ -120,6 +112,14 @@ diag "multipart rfc822 attachment";
     }
 }
 
+sub content_as_mime {
+    my $entity = shift;
+    my ( $status, $id ) = RT::Test->send_via_mailgate($entity);
+    is( $status >> 8, 0, "The mail gateway exited normally" );
+    ok( $id, "created ticket" );
+    return RT::Test->last_ticket->Transactions->First->ContentAsMIME;
+}
+
 sub headers_like {
     my $attach = shift;
     my %header = (@_);

commit 8364064ffc7f942add6f4c886e87acadf14f5c32
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Wed May 11 13:34:53 2011 -0400

    Ensure RT::Test doesn't declare no_plan for us, which conflicts with done_testing

diff --git a/t/mail/rfc822-attachment.t b/t/mail/rfc822-attachment.t
index 1c36d1c..be52c1b 100644
--- a/t/mail/rfc822-attachment.t
+++ b/t/mail/rfc822-attachment.t
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-use RT::Test;
+use RT::Test tests => undef;
 my ($baseurl, $m) = RT::Test->started_ok;
 
 use MIME::Entity;

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


More information about the Rt-commit mailing list