Fix broken DBICTest::RunMode::is_smoker() (riba got pwned by precedence)
Peter Rabbitson [Wed, 19 Dec 2012 13:04:55 +0000 (14:04 +0100)]
t/lib/DBICTest/RunMode.pm

index 9e99009..53eb073 100644 (file)
@@ -150,9 +150,11 @@ sub is_author {
 }
 
 sub is_smoker {
-  return $ENV{TRAVIS} or (
-    $ENV{AUTOMATED_TESTING} && ! $ENV{PERL5_CPANM_IS_RUNNING} && ! $ENV{RELEASE_TESTING}
-  )
+  return
+    ( ($ENV{TRAVIS}||'') eq 'true' )
+      ||
+    ( $ENV{AUTOMATED_TESTING} && ! $ENV{PERL5_CPANM_IS_RUNNING} && ! $ENV{RELEASE_TESTING} )
+  ;
 }
 
 sub is_plain {