diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-09-12 10:38:20 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-09-12 10:38:20 +0100 |
commit | 1e152d2b7e69e81193a3e8a46e36cb969ebef023 (patch) | |
tree | 2af2497ebec54e3e2e61e003bb3bd6af8fa73ce9 /t/app/controller/open311.t | |
parent | 7af16dbb365a55df9493174f24d5aa80792f3440 (diff) |
Fix redirect of old Open311 URIs when they have query parameters.
Diffstat (limited to 't/app/controller/open311.t')
-rw-r--r-- | t/app/controller/open311.t | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/t/app/controller/open311.t b/t/app/controller/open311.t new file mode 100644 index 000000000..9b0a6f8af --- /dev/null +++ b/t/app/controller/open311.t @@ -0,0 +1,13 @@ +use strict; +use warnings; + +use Test::More; + +use FixMyStreet::TestMech; +my $mech = FixMyStreet::TestMech->new; + +# Check old .cgi links redirect correctly +$mech->get_ok('/open311.cgi/v2/requests.rss?jurisdiction_id=fiksgatami.no&status=open&agency_responsible=1854'); +like $mech->uri, qr[/open311/v2/requests\.rss\?.{65}]; # Don't know order parameters will be in now + +done_testing(); |