[Catalyst-commits] r8132 - trunk/Catalyst-View-Mason/t/lib
rafl at dev.catalyst.perl.org
rafl at dev.catalyst.perl.org
Thu Jul 17 02:37:50 BST 2008
Author: rafl
Date: 2008-07-17 02:37:50 +0100 (Thu, 17 Jul 2008)
New Revision: 8132
Modified:
trunk/Catalyst-View-Mason/t/lib/TestApp.pm
Log:
Don't render things twice in the render tests.
Modified: trunk/Catalyst-View-Mason/t/lib/TestApp.pm
===================================================================
--- trunk/Catalyst-View-Mason/t/lib/TestApp.pm 2008-07-17 01:37:44 UTC (rev 8131)
+++ trunk/Catalyst-View-Mason/t/lib/TestApp.pm 2008-07-17 01:37:50 UTC (rev 8132)
@@ -63,18 +63,16 @@
sub render : Local {
my ($self, $c) = @_;
- my $out = $c->stash->{message} = $self->view->render(
+ my $out = $self->view->render(
$c, $c->request->param('template'),
{ param => $c->req->param('param') || '' },
);
+ $c->response->body($out);
+
if (blessed($out) && $out->isa('HTML::Mason::Exception')) {
- $c->response->body($out);
$c->response->status(403);
}
- else {
- $c->stash->{template} = 'test';
- }
}
sub match : Regex('^match/(\w+)') {
More information about the Catalyst-commits
mailing list