aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorJoe Siltberg <git@joesiltberg.se>2018-10-31 10:40:26 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-11-05 10:13:48 +0000
commit10a9e1b8b70f1189b01f41ca57a02e255e13f081 (patch)
tree3ced056c1119166e719c2febec54499edde8a073 /t
parent3de208b311a1a0a3d02efbb1383b32192282b306 (diff)
[FixaMinGata] Show staff user name as well as body name in updates
Diffstat (limited to 't')
-rw-r--r--t/cobrand/fixamingata.t12
1 files changed, 12 insertions, 0 deletions
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();