X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestApp%2FController%2FRoot.pm;h=c3ab34191a6bcf3bb9758a4a632858cb12918a37;hb=0d227c71bc7a40edab38bb4d19a60caabb82c6de;hp=58952230e722b0a737565eb97700690603076ab8;hpb=8eab1a1ad6c18c13fc29292e7201bc658849532e;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/TestApp/Controller/Root.pm b/t/lib/TestApp/Controller/Root.pm index 5895223..c3ab341 100644 --- a/t/lib/TestApp/Controller/Root.pm +++ b/t/lib/TestApp/Controller/Root.pm @@ -114,6 +114,32 @@ sub test_redirect_with_content :Global { # it is only for checking HTTP response code, content-type etc. } +sub test_remove_body_with_304 :Global { + my ($self, $c) = @_; + $c->res->status(304); + $c->res->content_type('text/html'); + $c->res->body("Body should not be set"); +} + +sub test_remove_body_with_204 :Global { + my ($self, $c) = @_; + $c->res->status(204); + $c->res->content_type('text/html'); + $c->res->body("Body should not be set"); +} + +sub test_remove_body_with_100 :Global { + my ($self, $c) = @_; + $c->res->status(100); + $c->res->body("Body should not be set"); + $c->res->content_type('text/html'); +} + +sub test_nobody_with_100 :Global { + my ($self, $c) = @_; + $c->res->status(100); +} + sub end : Private { my ($self,$c) = @_; }