[Rt-commit] rt branch, 4.0/forward-result-msg-tense, created. rt-4.0.0-276-g9d99926

Thomas Sibley trs at bestpractical.com
Thu May 12 09:26:29 EDT 2011


The branch, 4.0/forward-result-msg-tense has been created
        at  9d9992654e305c0c819b1d133be5c4901ed47cd0 (commit)

- Log -----------------------------------------------------------------
commit 9d9992654e305c0c819b1d133be5c4901ed47cd0
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Thu May 12 09:26:07 2011 -0400

    Fix tense in our forward result message

diff --git a/lib/RT/Interface/Email.pm b/lib/RT/Interface/Email.pm
index 3561805..620ca60 100644
--- a/lib/RT/Interface/Email.pm
+++ b/lib/RT/Interface/Email.pm
@@ -766,7 +766,7 @@ sub SendForward {
         ? SendEmail( %args, Entity => $mail, Sign => 0 )
         : SendEmail( %args, Entity => $mail );
     return (0, $ticket->loc("Couldn't send email")) unless $status;
-    return (1, $ticket->loc("Send email successfully"));
+    return (1, $ticket->loc("Sent email successfully"));
 }
 
 =head2 SignEncrypt Entity => undef, Sign => 0, Encrypt => 0
diff --git a/t/web/ticket_forward.t b/t/web/ticket_forward.t
index 37bd0cb..745fc3e 100644
--- a/t/web/ticket_forward.t
+++ b/t/web/ticket_forward.t
@@ -43,7 +43,7 @@ diag "Foward Ticket" if $ENV{TEST_VERBOSE};
         },
         button => 'ForwardAndReturn'
     );
-    $m->content_contains( 'Send email successfully', 'sent mail msg' );
+    $m->content_contains( 'Sent email successfully', 'sent mail msg' );
     $m->content_contains(
         'Forwarded Ticket to rt-test, rt-to at example.com, rt-cc at example.com',
         'txn msg' );
@@ -68,7 +68,7 @@ diag "Foward Transaction" if $ENV{TEST_VERBOSE};
         },
         button => 'ForwardAndReturn'
     );
-    $m->content_contains( 'Send email successfully', 'sent mail msg' );
+    $m->content_contains( 'Sent email successfully', 'sent mail msg' );
     $m->content_like(
 qr/Forwarded Transaction #\d+ to rt-test, rt-to\@example.com, rt-cc\@example.com, rt-bcc\@example.com/,
         'txn msg'
@@ -95,6 +95,6 @@ diag "Foward Ticket without content" if $ENV{TEST_VERBOSE};
         fields    => { To => 'rt-test at example.com', },
         button    => 'ForwardAndReturn'
     );
-    $m->content_contains( 'Send email successfully', 'sent mail msg' );
+    $m->content_contains( 'Sent email successfully', 'sent mail msg' );
 }
 

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


More information about the Rt-commit mailing list