aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/Cobrand/FixaMinGata.pm4
-rw-r--r--t/cobrand/fixamingata.t12
2 files changed, 16 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FixaMinGata.pm b/perllib/FixMyStreet/Cobrand/FixaMinGata.pm
index 29e840dfa..9233d479e 100644
--- a/perllib/FixMyStreet/Cobrand/FixaMinGata.pm
+++ b/perllib/FixMyStreet/Cobrand/FixaMinGata.pm
@@ -181,4 +181,8 @@ sub state_groups_inspect {
]
}
+sub always_view_body_contribute_details {
+ return 1;
+}
+
1;
diff --git a/t/cobrand/fixamingata.t b/t/cobrand/fixamingata.t
index d1f1dcec4..9644e0f44 100644
--- a/t/cobrand/fixamingata.t
+++ b/t/cobrand/fixamingata.t
@@ -106,6 +106,18 @@ subtest "Test ajax decimal points" => sub {
};
};
+subtest "check user details always shown" => sub {
+ FixMyStreet::override_config {
+ ALLOWED_COBRANDS => [ 'fixamingata' ],
+ }, sub {
+ $user2->update({ from_body => $body });
+ $mech->get_ok('/report/' . $report->id);
+ my $update_meta = $mech->extract_update_metas;
+ like $update_meta->[0], qr/Body \(Commenter\) /;
+ $user2->update({ from_body => undef });
+ };
+};
+
END {
ok $mech->host("www.fixmystreet.com"), "change host back";
done_testing();