Dancer2-Session-Redis

 view release on metacpan or  search on metacpan

t/Util.pm  view on Meta::CPAN

  my ( $app, $method, $uri, $expected_response ) = @_;
  my $client = sub {
    my ($cb) = @_;
    my $req = HTTP::Request->new( $method => "http://localhost$uri" );
    $jar->add_cookie_header($req);
    my $res = $cb->($req);
    $jar->extract_cookies($res);
    subtest "$method $uri" => sub {
      plan tests => $expected_response ? 2 : 1;
      ok( $res->is_success, "request successful for $method $uri" );
      like( $res->decoded_content, $expected_response, "expected response content for $method $uri" )
        if $expected_response;
    };
    return;
  };
  test_psgi( $app, $client );
  return;
}
sub psgi_change_session_id {
  my $app = shift;
  my $client = sub {



( run in 0.225 second using v1.01-cache-2.11-cpan-26ccb49234f )