diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-07-19 16:01:52 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-07-19 16:08:09 +0100 |
commit | 8dc2821130092d16ee96d703165bd3c505aa867f (patch) | |
tree | 753851503e28373607e48c7bc7304ee362308a82 /t/app/controller/dashboard.t | |
parent | a555312994060ba682634de58acf934005dfde84 (diff) |
Treat Other more like a normal category.
Diffstat (limited to 't/app/controller/dashboard.t')
-rw-r--r-- | t/app/controller/dashboard.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/app/controller/dashboard.t b/t/app/controller/dashboard.t index c3b6c014a..47d10ff5c 100644 --- a/t/app/controller/dashboard.t +++ b/t/app/controller/dashboard.t @@ -49,7 +49,7 @@ FixMyStreet::App->model('DB::Contact')->search( { area_id => $test_council } ) delete_problems(); -my @cats = qw( Grafitti Litter Potholes ); +my @cats = qw( Grafitti Litter Potholes Other ); for my $contact ( @cats ) { FixMyStreet::App->model('DB::Contact')->create( { @@ -90,7 +90,7 @@ my $categories = scraper { }, }; -my $expected_cats = [ 'All', '-- Pick a category --', @cats, 'Other' ]; +my $expected_cats = [ 'All', '-- Pick a category --', @cats ]; my $res = $categories->scrape( $mech->content ); is_deeply( $res->{cats}, $expected_cats, 'correct list of categories' ); |