aboutsummaryrefslogtreecommitdiffstats
path: root/t/app
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-04-26 13:05:29 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-04-26 13:05:29 +0100
commit3806b6b39ace2d38c264615eb95370a303ede34c (patch)
tree4da84289e6053c1e7059d67f71a0ba1511c16637 /t/app
parent56dca800a946f8cef66e9839590c5a9f37cad12f (diff)
parent41a5f14388e92fa9dbbb5dc3a72d9ad83291eeb4 (diff)
Merge branch 'collideoscope-anew'
Diffstat (limited to 't/app')
-rw-r--r--t/app/controller/report_new.t1
-rw-r--r--t/app/controller/reports.t3
2 files changed, 4 insertions, 0 deletions
diff --git a/t/app/controller/report_new.t b/t/app/controller/report_new.t
index 0e7547a85..e12391804 100644
--- a/t/app/controller/report_new.t
+++ b/t/app/controller/report_new.t
@@ -1169,6 +1169,7 @@ FixMyStreet::override_config {
$extra_details = $mech->get_ok_json( '/report/new/ajax?latitude=' . $saved_lat . '&longitude=' . $saved_lon );
};
$mech->content_contains( "Pothol\xc3\xa9s" );
+like $extra_details->{councils_text}, qr/<strong>Cheltenham/;
ok !$extra_details->{titles_list}, 'Non Bromley does not send back list of titles';
FixMyStreet::override_config {
diff --git a/t/app/controller/reports.t b/t/app/controller/reports.t
index 76c920562..8cdfddd1b 100644
--- a/t/app/controller/reports.t
+++ b/t/app/controller/reports.t
@@ -95,6 +95,9 @@ $fife_problems[10]->update( {
state => 'hidden',
});
+# Run the cron script old-data (for the table no longer used by default)
+FixMyStreet::Script::UpdateAllReports::generate(1);
+
# Run the cron script that makes the data for /reports so we don't get an error.
my $data = FixMyStreet::Script::UpdateAllReports::generate_dashboard();