More aggregation.
[catagits/Catalyst-Runtime.git] / t / aggregate / custom_live_path_bug.t
CommitLineData
2f381252 1#!perl
2
3use strict;
4use warnings;
5
6use FindBin;
7use lib "$FindBin::Bin/lib";
8
9our $iters;
10
11BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 1; }
12
13use Test::More tests => 2*$iters;
14use Catalyst::Test 'TestAppPathBug';
15
16if ( $ENV{CAT_BENCHMARK} ) {
17 require Benchmark;
18 Benchmark::timethis( $iters, \&run_tests );
19}
20else {
21 for ( 1 .. $iters ) {
22 run_tests();
23 }
24}
737a1e42 25
2f381252 26sub run_tests {
27 SKIP:
28 {
29 if ( $ENV{CATALYST_SERVER} ) {
30 skip 'Using remote server', 2;
31 }
737a1e42 32
2f381252 33 {
34 my $expected = 'This is the foo method.';
35 ok( my $response = request('http://localhost/'), 'response ok' );
36 is( $response->content, $expected, 'Content OK' );
37 }
38 }
39}