merge the stats patch against .10 into trunk
[catagits/Catalyst-Runtime.git] / t / live_stats.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 => 5;
10 use Catalyst::Test 'TestAppStats';
11
12 {
13     ok( my $response = request('http://localhost/'), 'Request' );
14     ok( $response->is_success, 'Response Successful 2xx' );
15 }
16 {
17     ok( my $response = request('http://localhost/'), 'Request' );
18     ok( $response->is_success, 'Response Successful 2xx' );
19     ok( $response->content =~ m/\/default.*?[\d.]+s.*- test.*[\d.]+s/s, 'Stats report');
20
21 }
22