aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-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});