diff options
author | Matthew Somerville <matthew@mysociety.org> | 2014-12-11 16:42:53 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2014-12-12 12:41:31 +0000 |
commit | 43c98742ee85c73c4783451ceeea28108bb793c6 (patch) | |
tree | 40ced5bfa4a7b6c0328da62f8332cdc06a6637ea /t/app/controller/moderate.t | |
parent | 4edc79829ebf2f6dcce11185e929a2a592a3f5ed (diff) |
By default, use area-based alerts.
The body-based alert only works if the body ID matches the MapIt ID.
This fixes #959. Further work needs to be done to enable proper
body-based alerts that work properly in all circumstances.
Consequently, factor out fixed body IDs from many tests.
Also fix a couple of tests not overriding geocoder correctly.
Diffstat (limited to 't/app/controller/moderate.t')
-rw-r--r-- | t/app/controller/moderate.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/app/controller/moderate.t b/t/app/controller/moderate.t index 82e178f9b..84e8670b7 100644 --- a/t/app/controller/moderate.t +++ b/t/app/controller/moderate.t @@ -24,7 +24,7 @@ sub create_report { FixMyStreet::App->model('DB::Problem')->create( { postcode => 'BR1 3SB', - bodies_str => $BROMLEY_ID, + bodies_str => $body->id, areas => ",$BROMLEY_ID,", category => 'Other', title => 'Good bad good', @@ -64,7 +64,7 @@ subtest 'Auth' => sub { $mech->get_ok($REPORT_URL); $mech->content_lacks('Moderat'); - $user->update({ from_body => $BROMLEY_ID }); + $user->update({ from_body => $body->id }); $mech->get_ok($REPORT_URL); $mech->content_lacks('Moderat'); |