X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Funit_dispatcher_requestargs_restore.t;h=1ffff9c207963a3488ddf7335e34ee31f39d0414;hb=b3986722960128cc5a6e406064438f2637a8d778;hp=731c4da17418af6e084e58577bc58eb0a65d1019;hpb=ae29b412955743885e80350085167b54b69672da;p=catagits%2FCatalyst-Runtime.git diff --git a/t/unit_dispatcher_requestargs_restore.t b/t/unit_dispatcher_requestargs_restore.t index 731c4da..1ffff9c 100644 --- a/t/unit_dispatcher_requestargs_restore.t +++ b/t/unit_dispatcher_requestargs_restore.t @@ -10,42 +10,6 @@ # executing another action from the dispatcher (i.e. wrapping actions) # is present, so that the Authorization::ACL plugin can be re-written # to not be full of such crazy shit. -{ - package ACLTestApp; - use Test::More; - - use strict; - use warnings; - use MRO::Compat; - use Scalar::Util (); - - use base qw/Catalyst Catalyst::Controller/; - use Catalyst qw//; - - sub execute { - my $c = shift; - my ( $class, $action ) = @_; - - if ( Scalar::Util::blessed($action) - and $action->name ne "foobar" ) { - eval { $c->detach( 'foobar', [$action, 'foo'] ) }; - } - - $c->next::method( @_ ); - } - - sub foobar : Private { - die $Catalyst::DETACH; - } - - sub gorch : Local { - my ( $self, $c, $frozjob ) = @_; - is $frozjob, 'wozzle'; - $c->res->body("gorch"); - } - - __PACKAGE__->setup; -} use strict; use warnings;