[Rt-commit] rt branch, 4.2/attach-from-transactions, updated. rt-4.0.1-403-g2844b2a

Thomas Sibley trs at bestpractical.com
Thu Aug 11 19:22:17 EDT 2011


The branch, 4.2/attach-from-transactions has been updated
       via  2844b2af88e8739fdb642ebb082e15d3bd87f4fb (commit)
      from  9fe31d11eec302d5f663cf1436342419175af753 (commit)

Summary of changes:
 t/web/attach-from-txn.t |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

- Log -----------------------------------------------------------------
commit 2844b2af88e8739fdb642ebb082e15d3bd87f4fb
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Thu Aug 11 19:21:44 2011 -0400

    Avoid some "masks earlier declaration" warnings

diff --git a/t/web/attach-from-txn.t b/t/web/attach-from-txn.t
index 5f7bc12..9491326 100644
--- a/t/web/attach-from-txn.t
+++ b/t/web/attach-from-txn.t
@@ -118,9 +118,9 @@ is($m->status, 200, "request successful");
 $m->content_contains('who gives a hoot');
 
 # then see if we got the right mail
-my @mails = RT::Test->fetch_caught_mails;
+ at mails = RT::Test->fetch_caught_mails;
 is scalar @mails, 1, "got one outgoing email";
-my $mail = shift @mails;
+$mail = shift @mails;
 like $mail, qr/To: owls\@localhost/, 'got To';
 like $mail, qr/RT-Attach: $LogoId/, "found attachment we expected";
 like $mail, qr/RT-Attachment: \d+\/\d+\/$LogoId/, "found RT-Attachment header";
@@ -144,9 +144,9 @@ my ($ok, $msg, $txn) = $ticket->Correspond( AttachExisting => $LogoId, Content =
 ok $ok, $msg;
 
 # check mail that went out doesn't contain the logo
-my @mails = RT::Test->fetch_caught_mails;
+ at mails = RT::Test->fetch_caught_mails;
 is scalar @mails, 1, "got one outgoing email";
-my $mail = shift @mails;
+$mail = shift @mails;
 like $mail, qr/RT-Attach: $LogoId/, "found header we expected";
 unlike $mail, qr/RT-Attachment: \d+\/\d+\/$LogoId/, "lacks RT-Attachment header";
 unlike $mail, qr/filename=.?\Q$LogoName\E.?/, "lacks filename";

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


More information about the Rt-commit mailing list