[Catalyst-commits] r6349 - trunk/Catalyst-Engine-Apache/t
andyg at dev.catalyst.perl.org
andyg at dev.catalyst.perl.org
Mon Apr 30 17:32:08 GMT 2007
Author: andyg
Date: 2007-04-30 17:32:06 +0100 (Mon, 30 Apr 2007)
New Revision: 6349
Modified:
trunk/Catalyst-Engine-Apache/t/live_engine_request_parameters.t
Log:
Apache: sync tests with core
Modified: trunk/Catalyst-Engine-Apache/t/live_engine_request_parameters.t
===================================================================
--- trunk/Catalyst-Engine-Apache/t/live_engine_request_parameters.t 2007-04-30 16:22:12 UTC (rev 6348)
+++ trunk/Catalyst-Engine-Apache/t/live_engine_request_parameters.t 2007-04-30 16:32:06 UTC (rev 6349)
@@ -6,7 +6,7 @@
use FindBin;
use lib "$FindBin::Bin/lib";
-use Test::More tests => 30;
+use Test::More tests => 29;
use Catalyst::Test 'TestApp';
use Catalyst::Request;
@@ -103,15 +103,14 @@
};
my $request = POST(
- 'http://localhost/dump/request/a/b?query+string',
+ 'http://localhost/dump/request/a/b?query_string',
'Content' => $parameters,
'Content-Type' => 'application/x-www-form-urlencoded'
);
ok( my $response = request($request), 'Request' );
ok( eval '$creq = ' . $response->content, 'Unserialize Catalyst::Request' );
- is( $creq->{uri}->query, 'query+string', 'Catalyst::Request POST query_string' );
- is( $creq->keywords, 'query string', 'Catalyst::Request keywords' );
+ is( $creq->{uri}->query, 'query_string', 'Catalyst::Request POST query_string' );
is_deeply( $creq->{parameters}, $parameters, 'Catalyst::Request parameters' );
ok( $response = request('http://localhost/dump/request/a/b?x=1&y=1&z=1'), 'Request' );
More information about the Catalyst-commits
mailing list