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