$cxt->set_always( config => {} );
$cxt->set_always( request => $req );
$cxt->set_always( response => $res );
-$cxt->set_always( session => { __expires => 123 } );
+$cxt->set_always( session => { } );
+$cxt->set_always( session_expires => 123 );
$cxt->set_false("debug");
my $sessionid;
$cxt->mock( sessionid => sub { shift; $sessionid = shift if @_; $sessionid } );
$cxt->setup_session;
-is( $cxt->config->{session}{cookie_name},
- "session", "default cookie name is set" );
+like( $cxt->config->{session}{cookie_name},
+ qr/_session$/, "default cookie name is set" );
+
+$cxt->config->{session}{cookie_name} = "session";
can_ok( $m, "prepare_cookies" );
can_ok( $m, "finalize_cookies" );
$cxt->finalize_cookies;
-{ local $TODO = "This check is a pain to write, should be done by catalyst itself";
-ok( !$res->called("cookies"),
- "response cookie was not set since res cookie is already there" );
+{
+ local $TODO =
+ "This check is a pain to write, should be done by catalyst itself";
+ ok( !$res->called("cookies"),
+ "response cookie was not set since res cookie is already there" );
}
$cxt->clear;