diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-05-21 00:29:08 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-05-21 00:29:08 +0100 |
commit | 8fbb9539e8ada7faf6c54c40bda7d059bdfd0c12 (patch) | |
tree | c16ed9eed6ec9f1272253dbfb098979a47c49216 /t | |
parent | c804762c2fa0b855fca4c2388c6a47f09913b966 (diff) |
Fix bug whereby 'old and of unknown status' was shown on all open reports.
Diffstat (limited to 't')
-rw-r--r-- | t/app/controller/report_display.t | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/t/app/controller/report_display.t b/t/app/controller/report_display.t index aa7e507d9..1f857a387 100644 --- a/t/app/controller/report_display.t +++ b/t/app/controller/report_display.t @@ -190,6 +190,14 @@ foreach my $meta ( for my $test ( { + description => 'new report', + date => DateTime->now, + state => 'confirmed', + banner_id => '', + banner_text => '', + fixed => 0 + }, + { description => 'old report', date => DateTime->new( year => 2009, @@ -230,6 +238,7 @@ for my $test ( ) { subtest "banner for $test->{description}" => sub { $report->confirmed( $test->{date}->ymd . ' ' . $test->{date}->hms ); + $report->lastupdate( $test->{date}->ymd . ' ' . $test->{date}->hms ); $report->state( $test->{state} ); $report->update; |