update tests for new noCache syntax

This commit is contained in:
Colin Kuskie 2007-03-09 16:59:52 +00:00
parent 4848b64345
commit 7818789002
2 changed files with 4 additions and 4 deletions

View file

@ -52,10 +52,10 @@ is($output, $session->url->gateway.$homeAsset->get('url').'/sub/page', 'fetching
$session->setting->set('preventProxyCache', 1);
$output = WebGUI::Macro::PageUrl::process($session);
like($output, qr{\?noCache=\d+,\d+$}, 'checking the cache settings in the page URL');
like($output, qr{\?noCache=\d+:\d+$}, 'checking the cache settings in the page URL');
$output = WebGUI::Macro::PageUrl::process($session, '/sub/page');
like($output, qr{/sub/page\?noCache=\d+,\d+$}, 'checking the cache settings in the URL are at the end of the page URL');
like($output, qr{/sub/page\?noCache=\d+:\d+$}, 'checking the cache settings in the URL are at the end of the page URL');
}

View file

@ -51,10 +51,10 @@ is($output, $session->url->gateway('/foo/bar'), 'passing URL through to macro');
$session->setting->set('preventProxyCache', 1);
$output = WebGUI::Macro::Slash_gatewayUrl::process($session);
like($output, qr{/\?noCache=\d+,\d+$}, 'checking the cache settings in the URL');
like($output, qr{/\?noCache=\d+:\d+$}, 'checking the cache settings in the URL');
$output = WebGUI::Macro::Slash_gatewayUrl::process($session, '/foo/bar');
like($output, qr{/foo/bar\?noCache=\d+,\d+$}, 'checking the cache settings in the URL are at the end of the URL');
like($output, qr{/foo/bar\?noCache=\d+:\d+$}, 'checking the cache settings in the URL are at the end of the URL');
$session->setting->set('preventProxyCache', 0);