[Rt-commit] r10729 - rt/branches/3.7-RTIR-RELENG/t/ticket

ruz at bestpractical.com ruz at bestpractical.com
Tue Feb 5 15:20:06 EST 2008


Author: ruz
Date: Tue Feb  5 15:19:59 2008
New Revision: 10729

Modified:
   rt/branches/3.7-RTIR-RELENG/t/ticket/search_by_watcher.t

Log:
* use new test method instead old style things

Modified: rt/branches/3.7-RTIR-RELENG/t/ticket/search_by_watcher.t
==============================================================================
--- rt/branches/3.7-RTIR-RELENG/t/ticket/search_by_watcher.t	(original)
+++ rt/branches/3.7-RTIR-RELENG/t/ticket/search_by_watcher.t	Tue Feb  5 15:19:59 2008
@@ -3,13 +3,13 @@
 use strict;
 use warnings;
 
-use Test::More tests => 78;
+use Test::More tests => 79;
 use RT::Test;
 use RT::Ticket;
 
-my $q = RT::Queue->new( $RT::SystemUser );
-my $queue = 'SearchTests-'. rand(200);
-$q->Create( Name => $queue );
+my $q = RT::Test->load_or_create_queue( Name => 'Regression' );
+ok $q && $q->id, 'loaded or created queue';
+my $queue = $q->Name;
 
 my ($total, @data, @tickets, %test) = (0, ());
 


More information about the Rt-commit mailing list