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 $@;
9 plan skip_all => "This test needs Test::WWW::Mechanize::Catalyst >= 0.50, you have only $Test::WWW::Mechanize::Catalyst::VERSION"
10 unless $Test::WWW::Mechanize::Catalyst::VERSION >= 0.50;
11 # There is something fishy going on here. When you run this from make test,
12 # there are 29 tests, when you run it from prove, there are 26 - WTF FIXME (t0m)
17 use Test::WWW::Mechanize::Catalyst qw/AuthSessionTestApp/; # for the cookie support
19 my $m = Test::WWW::Mechanize::Catalyst->new;
21 $m->get_ok("http://localhost/moose", "get ok");
22 $m->get_ok("http://localhost/elk", "get ok");
24 $m->get("http://localhost/yak");
25 ok(!$m->success, 'Not ok, user unable to be resotred == nasal demons');
27 $m->get_ok("http://localhost/goat", "get ok");
28 $m->get_ok("http://localhost/fluffy_bunny", "get ok");
29 $m->get_ok("http://localhost/possum", "get ok");
30 $m->get_ok("http://localhost/butterfly", "get ok");