Create branch register_actions.
[catagits/Catalyst-Runtime.git] / t / aggregate / live_loop.t
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
12 SKIP:
13 {
14     # Net::HTTP::Methods crashes when talking to a remote server because this
15     # test causes a very long header line to be sent
16     if ( $ENV{CATALYST_SERVER} ) {
17         skip 'Using remote server', 3;
18     }
19
20     ok( my $response = request('http://localhost/loop_test'), 'Request' );
21     ok( $response->is_success, 'Response Successful 2xx' );
22     ok( $response->header('X-Class-Forward-Test-Method'), 'Loop OK' );
23 }