we now cache the requested URL inside the session, fix it for tests

This commit is contained in:
Doug Bell 2011-05-05 19:35:49 -05:00
parent 61eff5be0c
commit bf75ed1615

View file

@ -27,6 +27,7 @@ my $output = WebGUI::Content::SiteIndex::handler($session);
is $output, undef, 'no content returned unless sitemap.xml is requested';
$session->request->env->{PATH_INFO} = '/sitemap.xml';
delete $session->url->{_requestedUrl};
$output = WebGUI::Content::SiteIndex::handler($session);
my $xmlData = XMLin($output,
KeepRoot => 1,