Support testing against two apps in same perl interpreter
[catagits/Test-WWW-Mechanize-Catalyst.git] / t / lib / CattySession.pm
index 9d3138c..4c96c49 100644 (file)
@@ -35,6 +35,15 @@ sub default : Private {
     $context->response->output($html);
 }
 
+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{