Test uri_for with path = 0
[catagits/Catalyst-Runtime.git] / t / aggregate / live_loop.t
CommitLineData
1627551a 1use strict;
2use warnings;
3
4use FindBin;
42da66a9 5use lib "$FindBin::Bin/../lib";
1627551a 6
7use Test::More tests => 3;
8use Catalyst::Test 'TestApp';
9
c4c4dd19 10SKIP:
11{
12 # Net::HTTP::Methods crashes when talking to a remote server because this
13 # test causes a very long header line to be sent
14 if ( $ENV{CATALYST_SERVER} ) {
15 skip 'Using remote server', 3;
16 }
17
18 ok( my $response = request('http://localhost/loop_test'), 'Request' );
19 ok( $response->is_success, 'Response Successful 2xx' );
20 ok( $response->header('X-Class-Forward-Test-Method'), 'Loop OK' );
21}