diff options
author | Struan Donald <struan@exo.org.uk> | 2012-05-16 12:46:58 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-05-16 12:46:58 +0100 |
commit | 3f2753b72d70a4b5144b3b380c821ba16b224939 (patch) | |
tree | 6f62e66d2a47791ac845a6b0658a263349550e74 /t/app/controller/dashboard.t | |
parent | 3587d4288288438be7f717989da2a8e3945e66ec (diff) |
check that all fixed states covered
Diffstat (limited to 't/app/controller/dashboard.t')
-rw-r--r-- | t/app/controller/dashboard.t | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/t/app/controller/dashboard.t b/t/app/controller/dashboard.t index b12b886d9..356c06d93 100644 --- a/t/app/controller/dashboard.t +++ b/t/app/controller/dashboard.t @@ -504,8 +504,23 @@ for my $test ( state => 'fixed', report_counts => [2,0,0], report_counts_after => [1,0,0], - } - + }, + { + desc => 'All fixed states count as fixed', + p1 => { + state => 'fixed - council', + conf_dt => DateTime->now(), + category => 'Potholes', + }, + p2 => { + state => 'fixed', + conf_dt => DateTime->now(), + category => 'Potholes', + }, + state => 'fixed', + report_counts => [4,0,0], + report_counts_after => [3,0,0], + }, ) { subtest $test->{desc} => sub { make_problem( $test->{p1} ) if $test->{p1}; |