use inlined module hiding in tests
[catagits/Catalyst-Runtime.git] / t / aggregate / live_loop.t
1 use strict;
2 use warnings;
3
4 use FindBin;
5 use lib "$FindBin::Bin/../lib";
6
7 use Test::More tests => 3;
8 use Catalyst::Test 'TestApp';
9
10 SKIP:
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 }