X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Flive_component_controller_action_path_matchsingle.t;h=beced91c911f6a3558023b0fbcf721055905dfc6;hb=gsoc_breadboard;hp=6370e01c0d5949a61906c8e2392f607386822bf4;hpb=9dac01c784a1f27fe7bb110442d006f9919e9dc1;p=catagits%2FCatalyst-Runtime.git diff --git a/t/aggregate/live_component_controller_action_path_matchsingle.t b/t/aggregate/live_component_controller_action_path_matchsingle.t index 6370e01..beced91 100644 --- a/t/aggregate/live_component_controller_action_path_matchsingle.t +++ b/t/aggregate/live_component_controller_action_path_matchsingle.t @@ -10,9 +10,13 @@ our $iters; BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 1; } -use Test::More tests => 2*$iters; +use Test::More; use Catalyst::Test 'TestAppMatchSingleArg'; +plan 'skip_all' if ( $ENV{CATALYST_SERVER} ); + +plan tests => 3*$iters; + if ( $ENV{CAT_BENCHMARK} ) { require Benchmark; Benchmark::timethis( $iters, \&run_tests ); @@ -25,7 +29,8 @@ else { sub run_tests { { - is(get('/foo/bar'), 'Path', 'multiple args matched :Path'); + is(get('/foo/bar/baz'), 'Path', 'multiple args matched :Path'); is(get('/foo'), 'Path Args(1)', 'single arg matched :Path Args(1)'); + is(get('/foo/bar'), 'Path Args(2)', 'two args matched :Path Args(2)'); } }