X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flive_app_session.t;h=ac99352059709b6a1ccc2801e76696ee519f113c;hb=87d186b172c2979a308e883baa1c72cebb1a7d30;hp=8bb19992223a71a7678854db3d63d97219ed9e1b;hpb=8d0e04d07fa7435dd30a53586663246dc4fc4fd8;p=catagits%2FCatalyst-Plugin-Authentication.git diff --git a/t/live_app_session.t b/t/live_app_session.t index 8bb1999..ac99352 100644 --- a/t/live_app_session.t +++ b/t/live_app_session.t @@ -6,7 +6,8 @@ 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 => 20; + 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; } use lib 't/lib'; @@ -16,6 +17,13 @@ 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/fluffy_bunny", "get ok"); -$m->get_ok("http://localhost/possum", "get ok"); -$m->get_ok("http://localhost/butterfly", "get ok"); + +$m->get("http://localhost/yak"); +ok(!$m->success, 'Not ok, user unable to be resotred == nasal demons'); + +foreach my $type (qw/ goat fluffy_bunny possum butterfly /) { + $m->get_ok("http://localhost/$type", "get $type ok"); +} + +done_testing; +