[Rt-commit] r20058 - rt/3.8/trunk/lib/RT

sunnavy at bestpractical.com sunnavy at bestpractical.com
Fri Jun 26 01:40:58 EDT 2009


Author: sunnavy
Date: Fri Jun 26 01:40:57 2009
New Revision: 20058

Modified:
   rt/3.8/trunk/lib/RT/Test.pm

Log:
we should give test script a chance to plan tests by itself even after use RT::Test: use RT::Test tests => 'no_declare' will do this

Modified: rt/3.8/trunk/lib/RT/Test.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/Test.pm	(original)
+++ rt/3.8/trunk/lib/RT/Test.pm	Fri Jun 26 01:40:57 2009
@@ -135,7 +135,8 @@
 
     # Spit out a plan (if we got one) *before* we load modules
     if ( $args{'tests'} ) {
-        $class->builder->plan( tests => $args{'tests'} );
+        $class->builder->plan( tests => $args{'tests'} )
+          unless $args{'tests'} eq 'no_declare';
     }
     else {
         $class->builder->no_plan unless $class->builder->has_plan;


More information about the Rt-commit mailing list