[Rt-commit] r6075 - in RT-Extension-TicketAging: .

schwern at bestpractical.com schwern at bestpractical.com
Wed Sep 27 23:52:27 EDT 2006


Author: schwern
Date: Wed Sep 27 23:52:26 2006
New Revision: 6075

Modified:
   RT-Extension-TicketAging/   (props changed)
   RT-Extension-TicketAging/t/03.dead-age.t

Log:
 r19392 at Master-Windhund-IV:  schwern | 2006-09-27 20:52:03 -0700
 Adding a child ticket to the parent makes it active and sets LastUpdated.
 The test was wrong in checking that the parent would be old.


Modified: RT-Extension-TicketAging/t/03.dead-age.t
==============================================================================
--- RT-Extension-TicketAging/t/03.dead-age.t	(original)
+++ RT-Extension-TicketAging/t/03.dead-age.t	Wed Sep 27 23:52:26 2006
@@ -77,6 +77,9 @@
     $child->__Set( Field => 'LastUpdated', Value => $date->ISO );
     is($child->LastUpdated, $date->ISO, 'set date' );
 
+    $parent->Load( $pid );
+    my $parent_date = $parent->LastUpdatedObj;
+
     my ($res, $err) = run_exec( debug => 1 );
     my $ferr = filter_log( $err );
     ok(!$ferr, 'no error') or diag($err);
@@ -84,7 +87,7 @@
     $parent->Load( $pid );
     is($parent->id, $pid, 'loaded ticket');
     is($parent->FirstCustomFieldValue('Age'), 'Active', 'correct age');
-    is($parent->LastUpdated, $date->ISO, 'correct date' );
+    is($parent->LastUpdated, $parent_date->ISO, 'correct date' );
 
     $child->Load( $cid );
     is($child->id, $cid, 'loaded child');


More information about the Rt-commit mailing list