Test uri_for with path = 0
[catagits/Catalyst-Runtime.git] / t / aggregate / live_recursion.t
CommitLineData
1627551a 1#!perl
2
3use strict;
4use warnings;
5
6use FindBin;
42da66a9 7use lib "$FindBin::Bin/../lib";
1627551a 8
9use Test::More tests => 3;
10use Catalyst::Test 'TestApp';
11
d5aec790 12local $^W = 0;
13
c4c4dd19 14SKIP:
15{
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;
20 }
21
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' );
25}
2eb2c42f 26