inflate store/state with strings like "store => 'File'" with autoloading.
[catagits/Web-Session.git] / t / 005_basic_w_chi_store.t
CommitLineData
6d601172 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5use Test::Requires 'CHI';
6
7use Test::More;
8
9use Plack::Request;
10use Plack::Session;
11use Plack::Session::State;
12use Plack::Session::Store::CHI;
13
14use t::lib::TestSession;
15
16t::lib::TestSession::run_all_tests(
17 store => Plack::Session::Store::CHI->new( chi => CHI->new(driver => 'Memory', datastore => {}) ),
18 state => Plack::Session::State->new,
19 request_creator => sub {
20 open my $in, '<', \do { my $d };
21 my $env = {
22 'psgi.version' => [ 1, 0 ],
23 'psgi.input' => $in,
24 'psgi.errors' => *STDERR,
25 'psgi.url_scheme' => 'http',
26 SERVER_PORT => 80,
27 REQUEST_METHOD => 'GET',
28 };
29 my $r = Plack::Request->new( $env );
30 $r->parameters( @_ );
31 $r;
32 },
33);
34
35
36done_testing;