X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flive_app_session.t;fp=t%2Flive_app_session.t;h=3ebc3d0ff0209376da7b89832d9e06c47c685350;hb=0c4ddd064218a77c17d1bd59fa2963ee31f594b4;hp=cb97025051e55f7ddb9b2b17227beac3c20d5163;hpb=97d3166060aaa4032a34175596477fae3ef871db;p=catagits%2FCatalyst-Plugin-Authentication.git diff --git a/t/live_app_session.t b/t/live_app_session.t index cb97025..3ebc3d0 100644 --- a/t/live_app_session.t +++ b/t/live_app_session.t @@ -7,11 +7,8 @@ use Test::More; BEGIN { eval { require Catalyst::Plugin::Session; require Catalyst::Plugin::Session::State::Cookie }; - if ($@) { - plan skip_all => "This test needs Catalyst::Plugin::Session and Catalyst::Plugin::Session::State::Cookie installed"; - } else { - plan tests => 12; - } + plan skip_all => "This test needs Catalyst::Plugin::Session and Catalyst::Plugin::Session::State::Cookie installed" if $@; + plan tests => 12; } {