[Catalyst-commits] r9341 - Catalyst-Runtime/5.70/trunk/t

rafl at dev.catalyst.perl.org rafl at dev.catalyst.perl.org
Thu Feb 19 01:29:05 GMT 2009


Author: rafl
Date: 2009-02-19 01:29:05 +0000 (Thu, 19 Feb 2009)
New Revision: 9341

Modified:
   Catalyst-Runtime/5.70/trunk/t/live_component_controller_moose.t
Log:
Don't run the moose controller test if Moose isn't available

Modified: Catalyst-Runtime/5.70/trunk/t/live_component_controller_moose.t
===================================================================
--- Catalyst-Runtime/5.70/trunk/t/live_component_controller_moose.t	2009-02-19 01:28:58 UTC (rev 9340)
+++ Catalyst-Runtime/5.70/trunk/t/live_component_controller_moose.t	2009-02-19 01:29:05 UTC (rev 9341)
@@ -1,10 +1,19 @@
 use strict;
 use warnings;
+use Test::More;
 
+BEGIN {
+    if (eval 'require Moose; 1') {
+        plan tests => 2;
+    }
+    else {
+        plan skip_all => 'Moose is required for this test';
+    }
+}
+
 use FindBin;
 use lib "$FindBin::Bin/lib";
 
-use Test::More tests => 2;
 use Catalyst::Test 'TestApp';
 
 {




More information about the Catalyst-commits mailing list