X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flive_app_session.t;h=65793eb8cf5522ba761bfaeccfe01d12f6190750;hb=69be7d10bf6e0a33db97b455571423e7e6e0eac2;hp=a1c3ae16e5c2490a1ae365f5b9637f5b08ab4550;hpb=9c469e379f826652f73f6465d97f638be7ef51fb;p=catagits%2FCatalyst-Plugin-Authentication.git diff --git a/t/live_app_session.t b/t/live_app_session.t index a1c3ae1..65793eb 100644 --- a/t/live_app_session.t +++ b/t/live_app_session.t @@ -6,7 +6,9 @@ use Test::More; BEGIN { eval { require Test::WWW::Mechanize::Catalyst; require Catalyst::Plugin::Session; require Catalyst::Plugin::Session::State::Cookie }; plan skip_all => "This test needs Test::WWW::Mechanize::Catalyst, Catalyst::Plugin::Session and Catalyst::Plugin::Session::State::Cookie installed" if $@; - plan tests => 28; + plan skip_all => "This test needs Test::WWW::Mechanize::Catalyst >= 0.50, you have only $Test::WWW::Mechanize::Catalyst::VERSION" + unless $Test::WWW::Mechanize::Catalyst::VERSION >= 0.50; + plan tests => 29; } use lib 't/lib'; @@ -16,8 +18,12 @@ my $m = Test::WWW::Mechanize::Catalyst->new; $m->get_ok("http://localhost/moose", "get ok"); $m->get_ok("http://localhost/elk", "get ok"); -$m->get_ok("http://localhost/yak", "get ok"); + +$m->get("http://localhost/yak"); +ok(!$m->success, 'Not ok, user unable to be resotred == nasal demons'); + $m->get_ok("http://localhost/goat", "get ok"); $m->get_ok("http://localhost/fluffy_bunny", "get ok"); $m->get_ok("http://localhost/possum", "get ok"); $m->get_ok("http://localhost/butterfly", "get ok"); +