9 eval { require Catalyst::Plugin::Session::State::Cookie; Catalyst::Plugin::Session::State::Cookie->VERSION(0.03) }
11 "Catalyst::Plugin::Session::State::Cookie 0.03 or higher is required for this test";
14 require Test::WWW::Mechanize::Catalyst;
15 Test::WWW::Mechanize::Catalyst->VERSION(0.51);
18 'Test::WWW::Mechanize::Catalyst >= 0.51 is required for this test';
24 use Test::WWW::Mechanize::Catalyst "SessionValid";
26 my $ua = Test::WWW::Mechanize::Catalyst->new;
28 $ua->get_ok( "http://localhost/", "initial get" );
29 $ua->content_contains( "value set", "page contains expected value" );
33 $ua->get_ok( "http://localhost/", "grab the page again, after the session has expired" );
34 $ua->content_contains( "value set", "page contains expected value" );