Allow for CATALYST_SERVER settings with a trailing slash
[catagits/Catalyst-Runtime.git] / t / live_stats.t
CommitLineData
dc5f035e 1#!perl
2
3use strict;
4use warnings;
5
6use FindBin;
7use lib "$FindBin::Bin/lib";
8
9use Test::More tests => 5;
10use 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