}
t::lib::TestSession::run_all_tests(
- store => Plack::Session::Store::File->new( dir => $TMP ),
- state => Plack::Session::State->new,
- request_creator => sub {
+ store => Plack::Session::Store::File->new( dir => $TMP ),
+ state => Plack::Session::State->new,
+ env_cb => sub {
open my $in, '<', \do { my $d };
my $env = {
'psgi.version' => [ 1, 0 ],
'psgi.url_scheme' => 'http',
SERVER_PORT => 80,
REQUEST_METHOD => 'GET',
+ QUERY_STRING => join "&" => map { $_ . "=" . $_[0]->{ $_ } } keys %{$_[0] || +{}},
};
- my $r = Plack::Request->new( $env );
- $r->parameters( @_ );
- $r;
},
);