From ba55bd341e99c674619ac6295526038b5770fe3e Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 29 Jun 2011 10:46:34 +0100 Subject: Get cookie expiry to work, and correct IDs on checkboxes. --- t/app/controller/auth.t | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 't/app/controller/auth.t') diff --git a/t/app/controller/auth.t b/t/app/controller/auth.t index 1a16457f9..fef45ac90 100644 --- a/t/app/controller/auth.t +++ b/t/app/controller/auth.t @@ -197,12 +197,10 @@ foreach my $remember_me ( '1', '0' ) { ); is $mech->uri->path, '/my', "redirected to correct page"; - # check that the cookie has no expiry set my $expiry = $mech->session_cookie_expiry; - is( $expiry, 0, "no expiry time" ); - #$remember_me - # ? cmp_ok( $expiry, '>', 86400, "long expiry time" ) - # : is( $expiry, 0, "no expiry time" ); + $remember_me + ? cmp_ok( $expiry, '>', 86400, "long expiry time" ) + : is( $expiry, 0, "no expiry time" ); # logout $mech->log_out_ok; -- cgit v1.2.3