e1be7cd3b328bd14716aa139973bd845ed1d4b22
[catagits/Catalyst-Plugin-Authentication.git] / t / live_app_session.t
1 #!/usr/bin/perl
2
3 use strict;
4 use warnings;
5
6 use Test::More;
7
8 BEGIN {
9         eval { require Test::WWW::Mechanize::Catalyst; require Catalyst::Plugin::Session; require Catalyst::Plugin::Session::State::Cookie };
10         plan skip_all => "This test needs Test::WWW::Mechanize::Catalyst, Catalyst::Plugin::Session and Catalyst::Plugin::Session::State::Cookie installed" if $@;
11         plan tests => 20;
12 }
13
14 use lib 't/lib';
15 use Test::WWW::Mechanize::Catalyst qw/AuthSessionTestApp/; # for the cookie support
16
17 my $m = Test::WWW::Mechanize::Catalyst->new;
18
19 $m->get_ok("http://localhost/moose", "get ok");
20 $m->get_ok("http://localhost/elk", "get ok");
21 $m->get_ok("http://localhost/fluffy_bunny", "get ok");
22 $m->get_ok("http://localhost/possum", "get ok");
23 $m->get_ok("http://localhost/butterfly", "get ok");