Commit | Line | Data |
ff817455 |
1 | use strict; |
2 | use warnings; |
3 | |
4 | use Test::More; |
5 | |
6 | BEGIN { |
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 $@; |
47c6643f |
9 | plan tests => 20; |
ff817455 |
10 | } |
11 | |
a3bf437a |
12 | use lib 't/lib'; |
13 | use Test::WWW::Mechanize::Catalyst qw/AuthSessionTestApp/; # for the cookie support |
ff817455 |
14 | |
15 | my $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"); |
19 | $m->get_ok("http://localhost/fluffy_bunny", "get ok"); |
47c6643f |
20 | $m->get_ok("http://localhost/possum", "get ok"); |
21 | $m->get_ok("http://localhost/butterfly", "get ok"); |