From 4a7912b97c75d8934bbab33532f0b6ac1e86e47f Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 16 Jun 2011 12:15:03 +0100 Subject: Generate /reports data on cron. --- t/app/controller/reports.t | 3 +++ 1 file changed, 3 insertions(+) (limited to 't/app/controller') 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}); -- cgit v1.2.3