7 use lib "$FindBin::Bin/../lib";
9 use Test::More tests => 3;
10 use Catalyst::Test 'TestApp';
16 # Net::HTTP::Methods crashes when talking to a remote server because this
17 # test causes a very long header line to be sent
18 if ( $ENV{CATALYST_SERVER} ) {
19 skip 'Using remote server', 3;
22 ok( my $response = request('http://localhost/recursion_test'), 'Request' );
23 ok( !$response->is_success, 'Response Not Successful' );
24 is( $response->header('X-Catalyst-Error'), 'Deep recursion detected calling "/recursion_test"', 'Deep Recursion Detected' );