Commit | Line | Data |
1627551a |
1 | use strict; |
2 | use warnings; |
3 | |
4 | use FindBin; |
42da66a9 |
5 | use lib "$FindBin::Bin/../lib"; |
1627551a |
6 | |
7 | use Test::More tests => 3; |
8 | use Catalyst::Test 'TestApp'; |
9 | |
c4c4dd19 |
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 | } |