From: Yuval Kogman Date: Tue, 10 Oct 2006 16:14:12 +0000 (+0000) Subject: fix the session/mock object problem X-Git-Tag: v0.13~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d3e0ff80d7571b537b69edc656263335040f3ee4;p=catagits%2FCatalyst-Plugin-Session.git fix the session/mock object problem --- diff --git a/t/03_flash.t b/t/03_flash.t index cf3f1c7..fd1fadf 100644 --- a/t/03_flash.t +++ b/t/03_flash.t @@ -17,9 +17,10 @@ $c->mock( get_session_data => sub { my ( $c, $key ) = @_; return $key =~ /expire/ ? time() + 1000 : $flash; - } + }, ); $c->set_true("store_session_data"); +$c->set_true("delete_session_data"); $c->set_always( _sessionid => "deadbeef" ); $c->set_always( config => { session => { expires => 1000 } } ); $c->set_always( stash => {} );