apply docs patch from Carl Franks (thanks!) with a couple minor changes
[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
12ok( my $response = request('http://localhost/recursion_test'), 'Request' );
13ok( !$response->is_success, 'Response Not Successful' );
14is( $response->header('X-Catalyst-Error'), 'Deep recursion detected calling "/recursion_test"', 'Deep Recursion Detected' );