[Jifty-commit] r1962 - jifty/trunk/lib/Jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Thu Sep 14 11:23:02 EDT 2006


Author: ishigaki
Date: Thu Sep 14 11:22:58 2006
New Revision: 1962

Modified:
   jifty/trunk/lib/Jifty/Test.pm

Log:
shut up warnings when tests  have no plan (t/Continuations/03-gc.t)

Modified: jifty/trunk/lib/Jifty/Test.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Test.pm	(original)
+++ jifty/trunk/lib/Jifty/Test.pm	Thu Sep 14 11:22:58 2006
@@ -50,7 +50,7 @@
 
     my $is_failing = 0;
     $is_failing ||= grep {not $_} $tb->summary;
-    $is_failing ||= $tb->has_plan eq 'no_plan'
+    $is_failing ||= ($tb->has_plan || '') eq 'no_plan'
                       ? 0
                       : $tb->expected_tests < $tb->current_test;
 
@@ -71,7 +71,7 @@
 
 sub is_done {
     my $tb = Jifty::Test->builder;
-    if( $tb->has_plan eq 'no_plan' ) {
+    if( ($tb->has_plan || '') eq 'no_plan' ) {
         return $tb->current_test > 0;
     }
     else {


More information about the Jifty-commit mailing list