X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Session-State-Cookie.git;a=blobdiff_plain;f=t%2Flive_app.t;h=9ef202e8c72287d59b94cdedce02c49dd6979b0c;hp=3c814fb68a6790d0399c8dbbf509b888c6814346;hb=c4a96adb1d059b734eec945989d48ee54fb0676e;hpb=a79a56a8332eb8daf2f85eceb0a1eea66324e91d diff --git a/t/live_app.t b/t/live_app.t index 3c814fb..9ef202e 100644 --- a/t/live_app.t +++ b/t/live_app.t @@ -10,6 +10,7 @@ BEGIN { plan skip_all => "This test requires Test::WWW::Mechanize::Catalyst in order to run" if $@; + plan skip_all => 'Test::WWW::Mechanize::Catalyst >= 0.40 required' if $Test::WWW::Mechanize::Catalyst::VERSION < 0.40; plan 'no_plan'; } @@ -53,7 +54,7 @@ $m->get_ok( "http://localhost/stream", "get page" ); $m->content_contains( "hit number 1", "session data created" ); my $expired; -$m->cookie_jar->scan( sub { $expired = $_[8]; warn join":",@_; } ); +$m->cookie_jar->scan( sub { $expired = $_[8]; } ); $m->get_ok( "http://localhost/page", "get page" ); $m->content_contains( "hit number 2", "session data restored" ); @@ -67,7 +68,7 @@ $m->get_ok( "http://localhost/page", "get stream" ); $m->content_contains( "hit number 4", "session data restored" ); my $updated_expired; -$m->cookie_jar->scan( sub { $updated_expired = $_[8]; warn join":",@_; } ); +$m->cookie_jar->scan( sub { $updated_expired = $_[8]; } ); cmp_ok( $expired, "<", $updated_expired, "cookie expiration was extended" );