[Rt-commit] r12845 - in rt/branches/3.8-TESTING: t/api

alexmv at bestpractical.com alexmv at bestpractical.com
Tue Jun 3 13:51:26 EDT 2008


Author: alexmv
Date: Tue Jun  3 13:51:26 2008
New Revision: 12845

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/t/api/reminders.t

Log:
 r32448 at kohr-ah:  chmrr | 2008-06-03 13:51:16 -0400
  * Prevent "masks earlier declaration in same scope" warning


Modified: rt/branches/3.8-TESTING/t/api/reminders.t
==============================================================================
--- rt/branches/3.8-TESTING/t/api/reminders.t	(original)
+++ rt/branches/3.8-TESTING/t/api/reminders.t	Tue Jun  3 13:51:26 2008
@@ -42,7 +42,8 @@
     ), 'Add reminder');
 
 # Check that the new Reminder is here
-ok(my $reminders = $t->Reminders->Collection, 'Loading reminders for this ticket');
+my $reminders = $t->Reminders->Collection;
+ok($reminders, 'Loading reminders for this ticket');
 my $found = 0;
 while ( my $reminder = $reminders->Next ) {
     next unless $found == 0;
@@ -57,7 +58,8 @@
 is ($t->QueueObj->Name, 'reminders tests 2', 'Ticket successfully moved');
 
 # Check that the new reminder is still there and moved to the new queue
-ok(my $reminders = $t->Reminders->Collection, 'Loading reminders for this ticket');
+$reminders = $t->Reminders->Collection;
+ok($reminders, 'Loading reminders for this ticket');
 $found = 0;
 my $ok_queue = 0;
 while ( my $reminder = $reminders->Next ) {


More information about the Rt-commit mailing list