aboutsummaryrefslogtreecommitdiffstats
path: root/t/app
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-16 12:15:03 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-16 12:15:03 +0100
commit4a7912b97c75d8934bbab33532f0b6ac1e86e47f (patch)
tree3645cd9bd55c77b71adbe7a8fc74bcc58202ba01 /t/app
parent4cbadaa9cd86ff3c0a82ccb696d115c2496b287a (diff)
Generate /reports data on cron.
Diffstat (limited to 't/app')
-rw-r--r--t/app/controller/reports.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/app/controller/reports.t b/t/app/controller/reports.t
index 6cb12e20f..58803d778 100644
--- a/t/app/controller/reports.t
+++ b/t/app/controller/reports.t
@@ -6,6 +6,9 @@ use mySociety::MaPit;
ok( my $mech = Test::WWW::Mechanize::Catalyst->new, 'Created mech object' );
+# Run the cron script that makes the data for /reports so we don't get an error.
+system( "bin/cron-wrapper update-all-reports" );
+
# check that we can get the page
$mech->get_ok('/reports');
$mech->title_like(qr{Summary reports});