X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Faggregate%2Flive_redirect_body.t;fp=t%2Flive_redirect_body.t;h=135cb85f11272d82a81aff5bca4ab7070755dba1;hp=b1e5b4eae415515732574922264be8445b613923;hb=5dbac379d1a478321ca88d3c94c16d32224f8a60;hpb=d67d5f8734a887d0dbd2eeaa5623cf1116a4b626 diff --git a/t/live_redirect_body.t b/t/aggregate/live_redirect_body.t similarity index 98% rename from t/live_redirect_body.t rename to t/aggregate/live_redirect_body.t index b1e5b4e..135cb85 100644 --- a/t/live_redirect_body.t +++ b/t/aggregate/live_redirect_body.t @@ -1,5 +1,5 @@ use FindBin; -use lib "$FindBin::Bin/lib"; +use lib "$FindBin::Bin/../lib"; use Catalyst::Test 'TestApp', {default_host => 'default.com'}; use Catalyst::Request; @@ -38,7 +38,7 @@ use Test::More tests => 12; ok( my $response = request($request), 'Request' ); is( $response->code, 302, 'Response Code' ); - + # When the developer sets both the content body and content type, the set content body and content_type should get through. is( $response->header( 'Content-Type' ), 'text/plain', 'Content Type' ); like( $response->content, qr/kind sir/, 'Content contains content set by the Controller' );