From 9fde45a9355c69040a519114f70f6d54184bf15c Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Mon, 16 Jul 2012 17:10:10 +0100 Subject: Fix test (change was in b1ccde8). --- t/app/controller/dashboard.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/app/controller/dashboard.t') diff --git a/t/app/controller/dashboard.t b/t/app/controller/dashboard.t index 472c6d9bd..c3b6c014a 100644 --- a/t/app/controller/dashboard.t +++ b/t/app/controller/dashboard.t @@ -42,7 +42,7 @@ $mech->submit_form_ok( { with_fields => { email => $test_user, password_sign_in => $test_pass } } ); -$mech->content_contains( 'Summary Statistics for City of Edinburgh' ); +$mech->content_contains( 'City of Edinburgh' ); FixMyStreet::App->model('DB::Contact')->search( { area_id => $test_council } ) ->delete; -- cgit v1.2.3 From 8dc2821130092d16ee96d703165bd3c505aa867f Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 19 Jul 2012 16:01:52 +0100 Subject: Treat Other more like a normal category. --- t/app/controller/dashboard.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't/app/controller/dashboard.t') 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' ); -- cgit v1.2.3