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%2FSerialize%2FView%2FAwful.pm;fp=t%2Flib%2FTest%2FSerialize%2FView%2FAwful.pm;h=0000000000000000000000000000000000000000;hp=9c9abf95a6c3de8ee50070108023d54e702a03fc;hb=79025f72c27ba313b3c701cee238f84166f32f9e;hpb=f10c7e1c7eb3b4cb10401dbb86ca8db3dc38ced2 diff --git a/t/lib/Test/Serialize/View/Awful.pm b/t/lib/Test/Serialize/View/Awful.pm deleted file mode 100644 index 9c9abf9..0000000 --- a/t/lib/Test/Serialize/View/Awful.pm +++ /dev/null @@ -1,27 +0,0 @@ -package Test::Serialize::View::Awful; - -use base Catalyst::View; - -sub render { - my ($self, $c, $template) = @_; - die "I don't know how to do that!"; -} - -sub process { - my ($self, $c) = @_; - - my $output = eval { - $self->render($c, "blah"); - }; - - if ($@) { - my $error = qq/Couldn't render template. Error: "$@"/; - $c->error($error); - return 0; - } - - $c->res->body($output); - return 1; -} - -1;