X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=t%2Fsitemap.t;h=27804983cdc79f3f0db2b9122cf4075a8c2c4a14;hb=4df0ebafa22f06945061356e033a570c3875c737;hp=26f91ab6f3fd062244f00d00954786d8bb1ae800;hpb=cc84fb8d76fc3e975d2d593c51d4488d530aec6b;p=chaz%2Fp5-Catalyst-Plugin-Sitemap diff --git a/t/sitemap.t b/t/sitemap.t index 26f91ab..2780498 100644 --- a/t/sitemap.t +++ b/t/sitemap.t @@ -5,21 +5,22 @@ use warnings; use Test::More tests => 4; # last test to print use lib 't/lib'; - use Catalyst::Test 'TestApp'; -my $xml = request('/sitemap')->content; +my $xml = get('/sitemap'); + +note $xml; $xml =~ s/\s+//g; -like $xml, qr{http://localhost/alone}, ':Sitemap'; -like $xml, qr{http://localhost/with_function}, +like $xml, qr{http://localhost/root/alone}, ':Sitemap'; +like $xml, qr{http://localhost/root/with_function}, ':Sitemap(*)'; like $xml, - qr{http://localhost/with_priority0.75}, + qr{http://localhost/root/with_priority0.75}, ':Sitemap(0.75)'; like $xml, - qr{http://localhost/with_args2010-09-27daily}, + qr{http://localhost/root/with_args2010-09-27daily}, ':Sitemap(lotsa stuff)';