diff options
author | Matthew Somerville <matthew@balti.ukcod.org.uk> | 2010-08-02 15:07:38 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@balti.ukcod.org.uk> | 2010-08-02 15:07:38 +0100 |
commit | 63de882ee16ef6235e397566ff24af6797f34cc3 (patch) | |
tree | 5665008641b88c10708d96f602a30c532769ca4d | |
parent | da350a4100bf6d2d73de6c7685451fada94e401e (diff) |
Update tests for RSS redirects.
-rwxr-xr-x | bin/test-run | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/test-run b/bin/test-run index 6d35abcef..6f2d5cf5c 100755 --- a/bin/test-run +++ b/bin/test-run @@ -514,11 +514,13 @@ sub do_static { # Just checks header, doesn't check any contents. sub do_rss { $wth->browser_get($base_url . '/rss/l/52.5/-1.9'); - die "Lat/lon redirect failed" unless $wth->browser_uri() =~ m{/rss/2522/1792$}; + die "Lat/lon redirect failed" unless $wth->browser_uri() =~ m{/rss/n/406886,289126$}; $wth->browser_get($base_url . '/rss/2524/1779'); + die "Tile redirect failed" unless $wth->browser_uri() =~ m{/rss/n/407097,286935$}; + $wth->browser_get($base_url . '/rss/n/407097,286935'); $wth->browser_check_contents('New local problems on FixMyStreet'); $wth->browser_get($base_url . '/rss/pc/SW1A1AA'); - die "Postcode redirect failed" unless $wth->browser_uri() =~ m{/rss/3279/1113$}; + die "Postcode redirect failed" unless $wth->browser_uri() =~ m{/rss/529090,179645$}; $wth->browser_get($base_url . '/rss/area/Birmingham'); die "One-tier redirect failed" unless $wth->browser_uri() =~ m{/rss/reports/Birmingham$}; $wth->browser_get($base_url . '/rss/reports/Birmingham'); |