X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestApp%2FController%2FRoot.pm;h=58952230e722b0a737565eb97700690603076ab8;hb=8eab1a1ad6c18c13fc29292e7201bc658849532e;hp=f2acb215e81d497384ea982c3a91f8e996641817;hpb=9c1fc6d6a8c4701fa842fa5229c99d103aee1afa;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/TestApp/Controller/Root.pm b/t/lib/TestApp/Controller/Root.pm index f2acb21..5895223 100644 --- a/t/lib/TestApp/Controller/Root.pm +++ b/t/lib/TestApp/Controller/Root.pm @@ -2,6 +2,7 @@ package TestApp::Controller::Root; use strict; use warnings; use base 'Catalyst::Controller'; +use utf8; __PACKAGE__->config->{namespace} = ''; @@ -82,6 +83,8 @@ sub test_redirect :Global { # Don't set content_type # Don't set body $c->res->redirect('/go_here'); + # route for /go_here doesn't exist + # it is only for checking HTTP response code, content-type etc. } sub test_redirect_uri_for :Global { @@ -89,6 +92,8 @@ sub test_redirect_uri_for :Global { # Don't set content_type # Don't set body $c->res->redirect($c->uri_for('/go_here')); + # route for /go_here doesn't exist + # it is only for checking HTTP response code, content-type etc. } sub test_redirect_with_contenttype :Global { @@ -96,6 +101,8 @@ sub test_redirect_with_contenttype :Global { # set content_type but don't set body $c->res->content_type('image/jpeg'); $c->res->redirect('/go_here'); + # route for /go_here doesn't exist + # it is only for checking HTTP response code, content-type etc. } sub test_redirect_with_content :Global { @@ -103,6 +110,8 @@ sub test_redirect_with_content :Global { $c->res->content_type('text/plain'); $c->res->body('Please kind sir, I beg you to go to /go_here.'); $c->res->redirect('/go_here'); + # route for /go_here doesn't exist + # it is only for checking HTTP response code, content-type etc. } sub end : Private {