[Bps-public-commit] r15179 - in RT-Extension-CommandByEmail: .

sartak at bestpractical.com sartak at bestpractical.com
Thu Aug 14 22:45:25 EDT 2008


Author: sartak
Date: Thu Aug 14 22:45:24 2008
New Revision: 15179

Modified:
   RT-Extension-CommandByEmail/   (props changed)
   RT-Extension-CommandByEmail/t/03.update.t

Log:
 r69666 at onn:  sartak | 2008-08-14 22:45:20 -0400
 CF is a little weird, apparently it's done in a separate transaction. Test something (DelRequestor) that's a little less ornery


Modified: RT-Extension-CommandByEmail/t/03.update.t
==============================================================================
--- RT-Extension-CommandByEmail/t/03.update.t	(original)
+++ RT-Extension-CommandByEmail/t/03.update.t	Thu Aug 14 22:45:24 2008
@@ -216,6 +216,9 @@
     $obj->Load( $id );
     is($obj->id, $id, "loaded ticket");
     is($obj->RequestorAddresses, 'test at localhost', 'del requestor' );
+
+    my $content = $obj->Transactions->Last->Content;
+    like($content, qr/DelRequestor/, "valid command NOT stripped");
 }
 
 my $link_ticket_id;
@@ -288,9 +291,6 @@
     $obj->Load( $id );
     is($obj->id, $id, "loaded ticket");
     is($obj->FirstCustomFieldValue($cf_name), 'foo', 'correct cf value' );
-
-    my $content = $obj->Transactions->Last->Content;
-    like($content, qr/\QCustomField.{$cf_name}\E/, "valid CF command NOT stripped");
 }
 
 diag("commands must be at the start") if $ENV{'TEST_VERBOSE'};



More information about the Bps-public-commit mailing list