diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-06-29 10:46:34 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-06-29 22:40:21 +0100 |
commit | ba55bd341e99c674619ac6295526038b5770fe3e (patch) | |
tree | d6b7287a854fbe6454b33dd08e6bd96bb13e436c /t/app/controller/auth.t | |
parent | d6d8dc4e0080e3184751cf381bbd14581c970c62 (diff) |
Get cookie expiry to work, and correct IDs on checkboxes.
Diffstat (limited to 't/app/controller/auth.t')
-rw-r--r-- | t/app/controller/auth.t | 8 |
1 files changed, 3 insertions, 5 deletions
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; |