diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-06-20 12:09:37 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2015-10-06 09:09:24 +0100 |
commit | ff5e6664b9bf60ca62f9c632ea66d3413e67bcf3 (patch) | |
tree | 6a3a39186ab14ea5e3eaa006728c3790d52061d9 /t/cobrand | |
parent | e7c35a0de101331436b1d5d6f2346a8c85233737 (diff) |
[Zurich] Updated email templates
- submit-external-wish.txt includes a link with report's coordinates, template values are interpolated
Conflicts:
perllib/FixMyStreet/SendReport/Zurich.pm
Diffstat (limited to 't/cobrand')
-rw-r--r-- | t/cobrand/zurich.t | 2 | ||||
-rw-r--r-- | t/cobrand/zurich_attachments.txt | 15 |
2 files changed, 3 insertions, 14 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t index 1b059e192..038a2fe35 100644 --- a/t/cobrand/zurich.t +++ b/t/cobrand/zurich.t @@ -515,6 +515,8 @@ subtest "external report triggers email" => sub { FixMyStreet::override_config { ALLOWED_COBRANDS => [ 'zurich' ], }, sub { + # Set the public_response manually here because the default one will have line breaks that get escaped as HTML, causing the comparison to fail. + $report->set_extra_metadata('public_response' => 'Freundliche Gruesse Ihre Stadt Zuerich'); $report->update({ state => 'closed' }); # required to see body_external field $mech->get_ok( '/admin/report_edit/' . $report->id ); $mech->submit_form_ok( { diff --git a/t/cobrand/zurich_attachments.txt b/t/cobrand/zurich_attachments.txt index dc3b64d45..1c989c4d9 100644 --- a/t/cobrand/zurich_attachments.txt +++ b/t/cobrand/zurich_attachments.txt @@ -16,23 +16,10 @@ From: FixMyStreet <division@example.org> Gr=FCezi External Body, -Die folgende Meldung wurde auf -http://www.stadt-zuerich.ch/zueriwieneu erfasst: - =D6ffentliche URL: http://www.example.org/report/REPORT_ID -"Z=FCri wie neu" ist eine Dienstleistung der Stadt Z=FCrich zum Thema -B=FCrgerbeteiligung. Auf dieser Plattform kann die Bev=F6lkerung auf -Sch=E4den und M=E4ngel an der st=E4dtischen Infrastruktur hinweisen. Diese -Meldung wurde Ihnen von der Stadt Z=FCrich gesendet, da es Ihr -Zust=E4ndigkeitsgebiet betreffen k=F6nnte. - Bei Fragen zu "Z=FCri wie neu" wenden Sie sich bitte an -gis-zentrum@zuerich.ch. - -Freundliche Gr=FCsse - -Ihre Stadt Z=FCrich=20= +gis-zentrum@zuerich.ch.= |