X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Action-Serialize-Data-Serializer.git;a=blobdiff_plain;f=t%2Flib%2FTest%2FCatalyst%2FAction%2FREST%2FController%2FSerialize.pm;fp=t%2Flib%2FTest%2FCatalyst%2FAction%2FREST%2FController%2FSerialize.pm;h=0fd1592f523d65ed7bcfc75574a9202d648543f1;hp=4056898c921e283ac763cd3589aa30ee975da3e8;hb=fb9d509bd44b46cb5b67d3aeb501dc5246b760e1;hpb=02f66fc06a2d9e248d1e551fd8e917e1eee7153f diff --git a/t/lib/Test/Catalyst/Action/REST/Controller/Serialize.pm b/t/lib/Test/Catalyst/Action/REST/Controller/Serialize.pm index 4056898..0fd1592 100644 --- a/t/lib/Test/Catalyst/Action/REST/Controller/Serialize.pm +++ b/t/lib/Test/Catalyst/Action/REST/Controller/Serialize.pm @@ -48,4 +48,10 @@ sub empty_not_serialized_blank :Chained('empty') Args(0) ActionClass('Serialize' $c->res->body(''); } +# Explicitly set a view +sub explicit_view :Chained('empty') Args(0) ActionClass('Serialize') { + my ($self, $c) = @_; + $c->stash->{current_view} = ''; +} + 1;