Commit | Line | Data |
dc5f035e |
1 | #!perl |
2 | |
3 | use strict; |
4 | use warnings; |
5 | |
6 | use FindBin; |
7 | use lib "$FindBin::Bin/lib"; |
8 | |
b6b1bcad |
9 | use Test::More; |
dc5f035e |
10 | use Catalyst::Test 'TestAppStats'; |
11 | |
b6b1bcad |
12 | if ( $ENV{CATALYST_SERVER} ) { |
13 | plan skip_all => 'Using remote server'; |
14 | } |
15 | else { |
16 | plan tests => 5; |
17 | } |
18 | |
dc5f035e |
19 | { |
20 | ok( my $response = request('http://localhost/'), 'Request' ); |
21 | ok( $response->is_success, 'Response Successful 2xx' ); |
22 | } |
23 | { |
24 | ok( my $response = request('http://localhost/'), 'Request' ); |
25 | ok( $response->is_success, 'Response Successful 2xx' ); |
f3414019 |
26 | like( $response->content, qr/\/default.*?[\d.]+s.*- test.*[\d.]+s/s, 'Stats report'); |
dc5f035e |
27 | |
28 | } |
29 | |