diff options
author | Joe Siltberg <git@joesiltberg.se> | 2018-10-31 10:40:26 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-11-05 10:13:48 +0000 |
commit | 10a9e1b8b70f1189b01f41ca57a02e255e13f081 (patch) | |
tree | 3ced056c1119166e719c2febec54499edde8a073 | |
parent | 3de208b311a1a0a3d02efbb1383b32192282b306 (diff) |
[FixaMinGata] Show staff user name as well as body name in updates
-rw-r--r-- | perllib/FixMyStreet/Cobrand/FixaMinGata.pm | 4 | ||||
-rw-r--r-- | t/cobrand/fixamingata.t | 12 |
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(); |