]> Dogcows Code - chaz/p5-Catalyst-Plugin-Sitemap/blobdiff - t/lib/TestApp/Controller/Root.pm
return the $sitemap object instead than the XML directly
[chaz/p5-Catalyst-Plugin-Sitemap] / t / lib / TestApp / Controller / Root.pm
index 01a131d8dc292e3722aa57727cd32dfed2babcfc..0eb3c6e546eb7399551f5f3110f02b61fae0547a 100644 (file)
@@ -8,20 +8,20 @@ use parent 'Catalyst::Controller';
 sub sitemap : Path('/sitemap') {
     my ( $self, $c ) = @_;
 
-    $c->res->body( $c->sitemap );
+    $c->res->body( $c->sitemap->xml );
 }
 
-sub alone :Path('/alone') :Sitemap { }
+sub alone :Local :Sitemap { }
 
-sub with_priority :Path('/with_priority') :Sitemap(0.75) { }
+sub with_priority :Local :Sitemap(0.75) { }
 
-sub with_function :Path('/with_function') :Sitemap(*) { }
+sub with_function :Local :Sitemap(*) { }
 
 sub with_function_sitemap {
-    $_[2]->add( 'http://localhost/with_function' );
+    $_[2]->add( 'http://localhost/root/with_function' );
 }
 
-sub with_args :Path('/with_args') 
+sub with_args :Local 
     :Sitemap( lastmod => 2010-09-27, changefreq => daily ) 
     {}
 
This page took 0.021509 seconds and 4 git commands to generate.