Skip test if we don't have the cookie state module yet
Tomas Doran [Tue, 24 Apr 2012 07:34:16 +0000 (08:34 +0100)]
t/cat_test.t

index c30b8dc..83705e6 100644 (file)
@@ -9,6 +9,11 @@ use HTTP::Request::Common;
 use FindBin qw($Bin);
 use lib "$Bin/lib";
 
+BEGIN {
+    plan skip_all => "Need Catalyst::Plugin::Session::State::Cookie"
+        unless do { local $@; eval { require Catalyst::Plugin::Session::State::Cookie; } };
+}
+
 use Catalyst::Test 'SessionTestApp';
 my ($res, $c);