diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-08-23 18:18:33 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-08-27 13:50:45 +0100 |
commit | 91328191916df2f19712b59e4330e4b45fe9d0a3 (patch) | |
tree | b68a2cb777464ffabf927a72782808cf8c551b02 /t/cobrand | |
parent | 8efd1df253b96d6de5d5847d3e13b7649a5d707d (diff) |
[Buckinghamshire] Fix road placement question bug.
The question was being asked for even when it should not, because
the error key had been changed to start with an 'x' in 120b57d1.
Diffstat (limited to 't/cobrand')
-rw-r--r-- | t/cobrand/bucks.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/cobrand/bucks.t b/t/cobrand/bucks.t index a3ae3a196..49900114c 100644 --- a/t/cobrand/bucks.t +++ b/t/cobrand/bucks.t @@ -115,16 +115,16 @@ subtest 'blocked drain sent to extra email' => sub { $cobrand = FixMyStreet::Cobrand::Buckinghamshire->new(); subtest 'Flytipping extra question used if necessary' => sub { - my $errors = { 'road-placement' => 'This field is required' }; + my $errors = { 'xroad-placement' => 'This field is required' }; $report->update({ bodies_str => $body->id }); $cobrand->flytipping_body_fix($report, 'road', $errors); - is $errors->{'road-placement'}, 'This field is required', 'Error stays if sent to county'; + is $errors->{'xroad-placement'}, 'This field is required', 'Error stays if sent to county'; $report->update({ bodies_str => $district->id }); $report->discard_changes; # As e.g. ->bodies has been remembered. $cobrand->flytipping_body_fix($report, 'road', $errors); - is $errors->{'road-placement'}, undef, 'Error removed if sent to district'; + is $errors->{'xroad-placement'}, undef, 'Error removed if sent to district'; $report->update({ bodies_str => $body->id . ',' . $district->id }); $report->discard_changes; # As e.g. ->bodies has been remembered. |