Added ability for engines to run the entire prepare and finalize flows (for POE engine)
[catagits/Catalyst-Runtime.git] / t / live_recursion.t
CommitLineData
1627551a 1#!perl
2
3use strict;
4use warnings;
5
6use FindBin;
7use lib "$FindBin::Bin/lib";
8
9use Test::More tests => 3;
10use Catalyst::Test 'TestApp';
11
d5aec790 12local $^W = 0;
13
1627551a 14ok( my $response = request('http://localhost/recursion_test'), 'Request' );
15ok( !$response->is_success, 'Response Not Successful' );
16is( $response->header('X-Catalyst-Error'), 'Deep recursion detected calling "/recursion_test"', 'Deep Recursion Detected' );