X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Controller-DBIC-API.git;a=blobdiff_plain;f=t%2Flib%2FRestTest%2FController%2FAPI%2FREST%2FStashedClass.pm;fp=t%2Flib%2FRestTest%2FController%2FAPI%2FREST%2FStashedClass.pm;h=dde10338c7efb0ef9d3888f62db3bc181a7861e2;hp=804e7ae5c968c909e560d201eeeea65c863d45fc;hb=3649b790ea2d4ef93c32ee315b168b73dba087e6;hpb=850140b0ff0c6880796b9073d2289bbf68475773 diff --git a/t/lib/RestTest/Controller/API/REST/StashedClass.pm b/t/lib/RestTest/Controller/API/REST/StashedClass.pm index 804e7ae..dde1033 100644 --- a/t/lib/RestTest/Controller/API/REST/StashedClass.pm +++ b/t/lib/RestTest/Controller/API/REST/StashedClass.pm @@ -6,7 +6,9 @@ use namespace::autoclean; sub setup :Chained('/api/rest/rest_base') :CaptureArgs(1) :PathPart('stashedclass') { my ($self, $c, $class) = @_; - $c->stash->{class} = $class; + + $c->stash->{class} = $class if $class ne 'noclass'; + $self->next::method($c); }