[Rt-commit] r7945 - rt/branches/3.7-EXPERIMENTAL-RTIR-2.0/lib/t/regression

ruz at bestpractical.com ruz at bestpractical.com
Sun May 27 03:35:18 EDT 2007


Author: ruz
Date: Sun May 27 03:35:17 2007
New Revision: 7945

Modified:
   rt/branches/3.7-EXPERIMENTAL-RTIR-2.0/lib/t/regression/27-make_clicky.t

Log:
* Test::More doesn't allow us to define plan twice, backport a fix from 3.7-RTIR-2.4

Modified: rt/branches/3.7-EXPERIMENTAL-RTIR-2.0/lib/t/regression/27-make_clicky.t
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-RTIR-2.0/lib/t/regression/27-make_clicky.t	(original)
+++ rt/branches/3.7-EXPERIMENTAL-RTIR-2.0/lib/t/regression/27-make_clicky.t	Sun May 27 03:35:17 2007
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More qw(no_plan);
+use Test::More;
 
 BEGIN {
     use RT;
@@ -12,7 +12,9 @@
 }
 
 my %clicky = map { $_ => 1 } grep $_, RT->Config->Get('Active_MakeClicky');
-unless ( keys %clicky ) {
+if ( keys %clicky ) {
+    plan 'no_plan';
+} else {
     plan skip_all => 'No active Make Clicky actions';
 }
 


More information about the Rt-commit mailing list