From: Tomas Doran Date: Tue, 4 Dec 2012 21:58:30 +0000 (+0000) Subject: Fix http server test, which also runs all the tests at a sub-path X-Git-Tag: 5.90019~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=8c756ee10906d71a264d5ff3d1e6ea7be5cfb58a Fix http server test, which also runs all the tests at a sub-path --- diff --git a/t/aggregate/live_component_controller_action_chained.t b/t/aggregate/live_component_controller_action_chained.t index 5dd2293..b4907f7 100644 --- a/t/aggregate/live_component_controller_action_chained.t +++ b/t/aggregate/live_component_controller_action_chained.t @@ -1109,7 +1109,8 @@ sub run_tests { get('http://localhost/' . $path), 'request ' . $path . ' ok'); my $exp = URI->new('http://localhost:3000' . $path); - my $got = URI->new($content); + my ($want) = $content =~ m{/chained/(.*)}; + my $got = URI->new('http://localhost:3000/chained/' . $want); # Just check that the path matches, as who the hell knows or cares # where the app is based (live tests etc) is $got->path, $exp->path, "uri $path can round trip through uri_for (path)"