X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Flib%2FTestApp%2FController%2FRoot.pm;h=8541e2ec67395cdbef9c0d674b637d023210a902;hp=58952230e722b0a737565eb97700690603076ab8;hb=82010ea176741c7a4f2baf3f6f27377b1d9f6b15;hpb=8eab1a1ad6c18c13fc29292e7201bc658849532e diff --git a/t/lib/TestApp/Controller/Root.pm b/t/lib/TestApp/Controller/Root.pm index 5895223..8541e2e 100644 --- a/t/lib/TestApp/Controller/Root.pm +++ b/t/lib/TestApp/Controller/Root.pm @@ -114,6 +114,31 @@ 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"); +} + +sub test_nobody_with_100 :Global { + my ($self, $c) = @_; + $c->res->status(100); +} + sub end : Private { my ($self,$c) = @_; }