Commit | Line | Data |
---|---|---|
1627551a | 1 | #!perl |
2 | ||
3 | use strict; | |
4 | use warnings; | |
5 | ||
6 | use FindBin; | |
7 | use lib "$FindBin::Bin/lib"; | |
8 | ||
9 | use Test::More tests => 3; | |
10 | use Catalyst::Test 'TestApp'; | |
11 | ||
d5aec790 | 12 | local $^W = 0; |
13 | ||
1627551a | 14 | ok( my $response = request('http://localhost/recursion_test'), 'Request' ); |
15 | ok( !$response->is_success, 'Response Not Successful' ); | |
16 | is( $response->header('X-Catalyst-Error'), 'Deep recursion detected calling "/recursion_test"', 'Deep Recursion Detected' ); |