Checking in changes prior to tagging of version 0.10010. Changelog diff is:
[catagits/Catalyst-Plugin-Authentication.git] / t / live_app_session.t
CommitLineData
ff817455 1use strict;
2use warnings;
3
4use Test::More;
5
6BEGIN {
63ffb30f 7 eval { require Test::WWW::Mechanize::Catalyst; require Catalyst::Plugin::Session; require Catalyst::Plugin::Session::State::Cookie };
8 plan skip_all => "This test needs Test::WWW::Mechanize::Catalyst, Catalyst::Plugin::Session and Catalyst::Plugin::Session::State::Cookie installed" if $@;
eea5667a 9 plan tests => 29;
ff817455 10}
11
a3bf437a 12use lib 't/lib';
13use Test::WWW::Mechanize::Catalyst qw/AuthSessionTestApp/; # for the cookie support
ff817455 14
15my $m = Test::WWW::Mechanize::Catalyst->new;
16
17$m->get_ok("http://localhost/moose", "get ok");
18$m->get_ok("http://localhost/elk", "get ok");
eea5667a 19
20$m->get("http://localhost/yak");
21ok(!$m->success, 'Not ok, user unable to be resotred == nasal demons');
22
9c469e37 23$m->get_ok("http://localhost/goat", "get ok");
ff817455 24$m->get_ok("http://localhost/fluffy_bunny", "get ok");
47c6643f 25$m->get_ok("http://localhost/possum", "get ok");
26$m->get_ok("http://localhost/butterfly", "get ok");