Test uri_for with path = 0
[catagits/Catalyst-Runtime.git] / t / aggregate / unit_dispatcher_requestargs_restore.t
CommitLineData
12f0342e 1# Insane test case for the behavior needed by Plugin::Auhorization::ACL
2
5d50f369 3# We have to localise $c->request->{arguments} in
12f0342e 4# Catalyst::Dispatcher::_do_forward, rather than using save and restore,
5# as otherwise, the calling $c->detach on an action which says
6# die $Catalyst:DETACH causes the request arguments to not get restored,
7# and therefore sub gorch gets the wrong string $frozjob parameter.
8
9# Please feel free to break this behavior once a sane hook for safely
10# executing another action from the dispatcher (i.e. wrapping actions)
11# is present, so that the Authorization::ACL plugin can be re-written
12# to not be full of such crazy shit.
12f0342e 13
14use strict;
15use warnings;
16use FindBin qw/$Bin/;
b1ead5a2 17use lib "$Bin/../lib";
12f0342e 18use Catalyst::Test 'ACLTestApp';
19use Test::More tests => 1;
20
21request('http://localhost/gorch/wozzle');