aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/open311.t
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-09-20 16:13:15 +0100
committerStruan Donald <struan@exo.org.uk>2011-09-20 16:13:15 +0100
commit6128a2790b682170d2cac4b4674b4ac3ac2dc517 (patch)
tree63b493b3d442db2078c7fbf1b96afc7d275ef1ba /t/app/controller/open311.t
parentdd82abb2c31d77fbd54799f08322ee074f46a160 (diff)
parent77f31e8c96c727ea5ab9cf217cfd924074e8f3ed (diff)
Merge remote branch 'origin/master' into rss-addresses
Diffstat (limited to 't/app/controller/open311.t')
-rw-r--r--t/app/controller/open311.t13
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();