X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Fmore-psgi-compat.t;h=979896341da6c50795d8dadf8f7692a6635c0abd;hp=71dc283921bab5190e99bb4823b9887161dce62a;hb=10f9ef88e69b504106ed9e5cefa1088ccaf3308d;hpb=4491e0cc34b2be2fc485ad01fbbf51b61fed4c22 diff --git a/t/more-psgi-compat.t b/t/more-psgi-compat.t index 71dc283..9798963 100644 --- a/t/more-psgi-compat.t +++ b/t/more-psgi-compat.t @@ -1,5 +1,3 @@ -#!/usr/bin/env perl - use warnings; use strict; @@ -34,4 +32,20 @@ use Catalyst::Test 'TestFromPSGI'; 'expected content body /from_psgi_code_itr'; } +{ + ok my($res, $c) = ctx_request(POST '/test_psgi_keys?a=1&b=2', [c=>3,d=>4]); + + ok $c->req->env->{"psgix.input.buffered"}, "input is buffered"; + + is $c->req->parameters->get('c'), 3; + is $c->req->parameters->get('d'), 4; + is $c->req->parameters->get('a'), 1; + is $c->req->parameters->get('b'), 2; + + is $c->req->body_parameters->get('c'), 3; + is $c->req->body_parameters->get('d'), 4; + is $c->req->query_parameters->get('a'), 1; + is $c->req->query_parameters->get('b'), 2; +} + done_testing;