X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FCatty.pm;fp=t%2Flib%2FCatty.pm;h=17cff7f023709ca552806edd4dbad1d40cc4c940;hb=254eca4135088b598bc59093b98475992b4bf6f5;hp=34797013b7818d618db0ce1557e74efd869ac5e6;hpb=2d40faefc0e5f1b79b76275e90a3e630e588e785;p=catagits%2FTest-WWW-Mechanize-Catalyst.git diff --git a/t/lib/Catty.pm b/t/lib/Catty.pm index 3479701..17cff7f 100644 --- a/t/lib/Catty.pm +++ b/t/lib/Catty.pm @@ -84,6 +84,14 @@ sub die : Global { die "erk!"; } +sub name : Global { + my ($self, $c) = @_; + + my $html = html( $c->config->{name}, "This is the die page" ); + $c->response->content_type("text/html"); + $c->response->output($html); +} + sub html { my ( $title, $body ) = @_; return qq{