diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-03-13 18:06:55 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-03-13 21:54:29 +0000 |
commit | d0a16157fbd10f8bdf1a07c77331504c61bf7f5d (patch) | |
tree | f0401ba3397536b02a0d63eafdec4c8fda4bcf38 /t/app/controller/report_import.t | |
parent | 76e533bd318cb4208faa1bf5cd0c00bde9e08e6c (diff) |
[fixmystreet.com] Remove special Report-It code.
Diffstat (limited to 't/app/controller/report_import.t')
-rw-r--r-- | t/app/controller/report_import.t | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/t/app/controller/report_import.t b/t/app/controller/report_import.t index 0631b4209..ff6508149 100644 --- a/t/app/controller/report_import.t +++ b/t/app/controller/report_import.t @@ -17,7 +17,17 @@ ok -e $sample_file, "sample file $sample_file exists"; FixMyStreet::App->log->disable('info'); END { FixMyStreet::App->log->enable('info'); } -$mech->create_body_ok(2504, 'Westminster City Council'); +my $body = $mech->create_body_ok(2504, 'Westminster City Council'); +$mech->create_contact_ok( + body_id => $body->id, + category => 'Street lighting', + email => 'streetlighting@example.com', +); +$mech->create_contact_ok( + body_id => $body->id, + category => 'Potholes', + email => 'highways@example.com', +); # submit an empty report to import - check we get all errors subtest "Test creating bad partial entries" => sub { |