aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-05-16 12:46:58 +0100
committerStruan Donald <struan@exo.org.uk>2012-05-16 12:46:58 +0100
commit3f2753b72d70a4b5144b3b380c821ba16b224939 (patch)
tree6f62e66d2a47791ac845a6b0658a263349550e74 /t/app/controller
parent3587d4288288438be7f717989da2a8e3945e66ec (diff)
check that all fixed states covered
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/dashboard.t19
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};