From 781878900200c77cc7ff9bb385f1a38bea6341c0 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 9 Mar 2007 16:59:52 +0000 Subject: [PATCH] update tests for new noCache syntax --- t/Macro/PageUrl.t | 4 ++-- t/Macro/Slash_gatewayUrl.t | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/t/Macro/PageUrl.t b/t/Macro/PageUrl.t index f317d0776..c3ecc64c7 100644 --- a/t/Macro/PageUrl.t +++ b/t/Macro/PageUrl.t @@ -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'); } diff --git a/t/Macro/Slash_gatewayUrl.t b/t/Macro/Slash_gatewayUrl.t index 56a67bbcf..24ce75489 100644 --- a/t/Macro/Slash_gatewayUrl.t +++ b/t/Macro/Slash_gatewayUrl.t @@ -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);