aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-10-24 10:20:29 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-10-24 10:20:29 +0100
commit44138e8bec4b7d16e32561a612b462955605b3c8 (patch)
tree9161986070530bf777dcdeb0d72451b91272a38b /t
parentdbacdfe4712010164dde7c0466863b306f7c315d (diff)
Fix warning in report inspect test.
Diffstat (limited to 't')
-rw-r--r--t/app/controller/report_inspect.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/app/controller/report_inspect.t b/t/app/controller/report_inspect.t
index 831959fff..f6dcf5e70 100644
--- a/t/app/controller/report_inspect.t
+++ b/t/app/controller/report_inspect.t
@@ -55,7 +55,7 @@ FixMyStreet::override_config {
subtest "test inspect & instruct submission" => sub {
$report->unset_extra_metadata('inspected');
$report->update;
- my $reputation = $report->user->get_extra_metadata("reputation");
+ my $reputation = $report->user->get_extra_metadata("reputation") || 0;
$mech->get_ok("/report/$report_id/inspect");
$mech->submit_form_ok({ button => 'save', with_fields => { public_update => "This is a public update.", save_inspected => "1" } });
$report->discard_changes;