diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-11-15 10:29:06 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-11-15 10:29:06 +0000 |
commit | d7ec24294510c3b1d271941b57ee64082c47a743 (patch) | |
tree | 43d7ecd69ce2bd56674f4353b7276abfa88eb0e3 /t/cobrand | |
parent | 19ec44cbdf19f8c5711effff76735f20290e3855 (diff) |
[UK] Fix Greenwich RSS feed.
Diffstat (limited to 't/cobrand')
-rw-r--r-- | t/cobrand/greenwich.t | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/t/cobrand/greenwich.t b/t/cobrand/greenwich.t index e6aaca973..14ddba9be 100644 --- a/t/cobrand/greenwich.t +++ b/t/cobrand/greenwich.t @@ -5,7 +5,7 @@ use Open311::PopulateServiceList; my $mech = FixMyStreet::TestMech->new; -my $body = $mech->create_body_ok( 2493, 'Greenwich Council', { +my $body = $mech->create_body_ok( 2493, 'Royal Borough of Greenwich', { send_method => 'Open311', endpoint => 'endpoint', api_key => 'key', @@ -110,5 +110,26 @@ subtest 'testing special Open311 behaviour', sub { is $c->param('attribute[easting]'), 529025, 'Request had correct easting'; }; -done_testing(); +subtest 'RSS feed on .com' => sub { + FixMyStreet::override_config { + ALLOWED_COBRANDS => 'fixmystreet', + MAPIT_TYPES => ['GRE'], + MAPIT_URL => 'http://mapit.uk/', + }, sub { + $mech->get_ok('/rss/reports/Greenwich'); + is $mech->uri->path, '/rss/reports/Greenwich'; + }; +}; +subtest 'RSS feed on Greenwich' => sub { + FixMyStreet::override_config { + ALLOWED_COBRANDS => 'greenwich', + MAPIT_TYPES => ['GRE'], + MAPIT_URL => 'http://mapit.uk/', + }, sub { + $mech->get_ok('/rss/reports/Greenwich'); + is $mech->uri->path, '/rss/reports/Greenwich'; + }; +}; + +done_testing(); |