Actually add the new bits for rearranged apps
[catagits/Test-WWW-Mechanize-Catalyst.git] / t / cookies.t
CommitLineData
6bc86362 1#!perl -T
2use strict;
3use warnings;
4use lib 'lib';
5use Test::More;
6
7eval {
8 require Catalyst::Plugin::Session;
9 require Catalyst::Plugin::Session::State::Cookie;
10};
11
12if ($@) {
13 diag($@);
14 plan skip_all => "Need Catalyst::Plugin::Session to run this test";
15} else {
16 plan tests => 3;
17}
18use lib 't/lib';
19use Test::WWW::Mechanize::Catalyst 'CattySession';
20
21my $m = Test::WWW::Mechanize::Catalyst->new;
22$m->credentials( 'user', 'pass' );
23
24$m->get_ok("/");
25$m->title_is("Root");
26
27is( $m->status, 200 );