Add a test to make sure that a die in a Controller's end sub is propogated as a 500...
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Action / DieInEnd.pm
1 package TestApp::Controller::Action::DieInEnd;
2
3 use strict;
4 use base 'TestApp::Controller::Action';
5
6 sub end : Private {
7     my ( $self, $c ) = @_;
8     die "I'm ending with death";
9 }
10
11 sub default : Private {
12     my ( $self, $c ) = @_;
13     $c->forward('TestApp::View::Dump::Request');
14 }
15
16 1;