From: Tomas Doran Date: Tue, 24 Apr 2012 07:34:16 +0000 (+0100) Subject: Skip test if we don't have the cookie state module yet X-Git-Tag: 0.35~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Session.git;a=commitdiff_plain;h=f851ba4e446f2144e1b4b3db04913a10c92e2093 Skip test if we don't have the cookie state module yet --- diff --git a/t/cat_test.t b/t/cat_test.t index c30b8dc..83705e6 100644 --- a/t/cat_test.t +++ b/t/cat_test.t @@ -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);