Need to use _add_meta_method from new Moose onwards to avoid warnings
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Root.pm
index afdf6db..18c6db8 100644 (file)
@@ -1,5 +1,6 @@
 package TestApp::Controller::Root;
-
+use strict;
+use warnings;
 use base 'Catalyst::Controller';
 
 __PACKAGE__->config->{namespace} = '';
@@ -48,4 +49,24 @@ sub recursion_test : Local {
     $c->forward( 'recursion_test' );
 }
 
+sub base_href_test : Local {
+    my ( $self, $c ) = @_;
+
+    my $body = <<"EndOfBody";
+<html>
+  <head>
+    <base href="http://www.example.com/">
+  </head>
+  <body>
+  </body>
+</html>
+EndOfBody
+
+    $c->response->body($body);
+}
+
+sub end : Private {
+    my ($self,$c) = @_;
+}
+
 1;