-\feff#!perl
-
+#!/usr/bin/evn perl
use strict;
use warnings;
my $request = Catalyst::Utils::request( 'http://localhost/args/params/one/two' );
my $cgi = HTTP::Request::AsCGI->new( $request, %ENV )->setup;
- TestApp->handle_request;
+ TestApp->handle_request( env => \%ENV );
ok( my $response = $cgi->restore->response );
ok( $response->is_success, 'Response Successful 2xx' );
}
# test that request with URL-escaped code works.
-TODO: {
- local $TODO = 'Actions should match when path parts are url encoded';
my $request = Catalyst::Utils::request( 'http://localhost/args/param%73/one/two' );
my $cgi = HTTP::Request::AsCGI->new( $request, %ENV )->setup;
$ENV{PATH_INFO} = '/args/param%73/one/two';
- TestApp->handle_request;
+ TestApp->handle_request( env => \%ENV );
ok( my $response = $cgi->restore->response );
+TODO: {
+ local $TODO = 'Actions should match when path parts are url encoded';
ok( $response->is_success, 'Response Successful 2xx' );
is( $response->content, 'onetwo' );
}