0.13
- Rerelease with slightly changed test due to a behavior change in
Test::MockObject
- - add `clear_flash` (still waiting for tests, mr. Rob Kinyon!)
+ - add `clear_flash`
- improve debug logging
0.12
sub clear_flash {
my $c = shift;
+
+ #$c->delete_session_data("flash:" . $c->sessionid); # should this be in here? or delayed till finalization?
$c->_flash_key_hashes({});
+ $c->_flash_keep_keys({});
$c->_flash({});
}
return $key =~ /expire/ ? time() + 1000 : $flash;
},
);
-$c->set_true("store_session_data");
-$c->set_true("delete_session_data");
+$c->mock("store_session_data" => sub { $flash = $_[2] });
+$c->mock("delete_session_data" => sub { $flash = {} });
$c->set_always( _sessionid => "deadbeef" );
$c->set_always( config => { session => { expires => 1000 } } );
$c->set_always( stash => {} );