Support testing against two apps in same perl interpreter
[catagits/Test-WWW-Mechanize-Catalyst.git] / t / lib / Catty.pm
index 9d3e043..17cff7f 100644 (file)
@@ -15,7 +15,7 @@ Catty->config(
     root => cwd . '/t/root',
 );
 Catty->setup();
-Catty->log->levels(undef);
+Catty->log->levels("fatal");
 
 sub default : Private {
     my ( $self, $context ) = @_;
@@ -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{