-
-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Brent] Don't show TfL Bus station categories
There is only one bus station in Brent and Brent don't want to have a category for it. mysociety/societyworks#4521
- Loading branch information
1 parent
6ded89d
commit 32735ea
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -479,12 +479,18 @@ FixMyStreet::override_config { | |
$mech->create_contact_ok(body_id => $tfl->id, category => 'River Piers', email => '[email protected]'); | ||
$mech->create_contact_ok(body_id => $tfl->id, category => 'River Piers - Cleaning', email => '[email protected]'); | ||
$mech->create_contact_ok(body_id => $tfl->id, category => 'River Piers Damage doors and glass', email => '[email protected]'); | ||
$mech->create_contact_ok(body_id => $tfl->id, category => 'Bus Station Cleaning - General', email => '[email protected]'); | ||
$mech->create_contact_ok(body_id => $tfl->id, category => 'Graffiti / Flyposting (Response Desk Buses to Action)', email => '[email protected]'); | ||
|
||
$mech->create_contact_ok(body_id => $tfl->id, category => 'Sweeping', email => '[email protected]'); | ||
ok $mech->host('brent.fixmystreet.com'), 'set host'; | ||
my $json = $mech->get_ok_json('/report/new/ajax?latitude=51.55904&longitude=-0.28168'); | ||
is $json->{by_category}->{"River Piers"}, undef, "Brent doesn't have River Piers category"; | ||
is $json->{by_category}->{"River Piers - Cleaning"}, undef, "Brent doesn't have River Piers with hyphen and extra text category"; | ||
is $json->{by_category}->{"River Piers Damage doors and glass"}, undef, "Brent doesn't have River Piers with extra text category"; | ||
is $json->{by_category}->{"Bus Station Cleaning - General"}, undef, "Brent doesn't have Bus Station category beginning with 'Bus Station'"; | ||
is $json->{by_category}->{"Graffiti / Flyposting (Response Desk Buses to Action)"}, undef, "Brent doesn't have Bus Station category including 'Response Desk Buses to Action'"; | ||
|
||
}; | ||
|
||
subtest "has the correct pin colours" => sub { | ||
|