[Rt-commit] rt branch, 4.0/optional-mailgate-ticket-creation, created. rt-4.0.4-203-g7f16969
Jason May
jasonmay at bestpractical.com
Wed Jan 18 14:42:56 EST 2012
The branch, 4.0/optional-mailgate-ticket-creation has been created
at 7f169697c4ce530de49c507246cdcab67372e7f7 (commit)
- Log -----------------------------------------------------------------
commit 7f169697c4ce530de49c507246cdcab67372e7f7
Author: Jason May <jasonmay at bestpractical.com>
Date: Wed Jan 18 14:41:30 2012 -0500
Stop expecting the mailgate to always create a ticket in tests
This allows for making tests that are expected to fail to create a
ticket.
diff --git a/lib/RT/Test.pm b/lib/RT/Test.pm
index 048b3f8..78c1dae 100644
--- a/lib/RT/Test.pm
+++ b/lib/RT/Test.pm
@@ -1010,7 +1010,7 @@ sub send_via_mailgate {
my ( $status, $error_message, $ticket )
= RT::Interface::Email::Gateway( {%args, message => $message} );
- return ( $status, $ticket->id );
+ return ( $status, $ticket ? $ticket->id : undef );
}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list