aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/report_display.t
diff options
context:
space:
mode:
authorZarino Zappia <mail@zarino.co.uk>2016-10-13 14:22:27 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-05-31 16:55:17 +0100
commit6b9bd2aaeb12a9514619b433895469ede7f4d98b (patch)
tree860b6116bc9908e008d27da4ab8c42899302ff48 /t/app/controller/report_display.t
parenta752a967ffd846e2ea6eb7f6a4789b0bf1a8dbf0 (diff)
Allow users to hide their name on reports/updates.
Diffstat (limited to 't/app/controller/report_display.t')
-rw-r--r--t/app/controller/report_display.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/app/controller/report_display.t b/t/app/controller/report_display.t
index 81b0ffb86..5993a6304 100644
--- a/t/app/controller/report_display.t
+++ b/t/app/controller/report_display.t
@@ -547,14 +547,14 @@ subtest "check user details show when a user has correct permissions" => sub {
$mech->log_in_ok( $oxfordshireuser->email );
ok $mech->get("/report/$report_id"), "get '/report/$report_id'";
is $mech->extract_problem_meta,
- 'Reported in the Roads category by Oxfordshire County Council (Council User) at 15:17, Tue 10 January 2012',
+ 'Reported in the Roads category by Oxfordshire County Council (Council User) at 15:17, Tue 10 January 2012 (Hide your name?)',
'correct problem meta information';
ok $oxfordshireuser->user_body_permissions->delete_all, "Remove view_body_contribute_details permissions";
ok $mech->get("/report/$report_id"), "get '/report/$report_id'";
is $mech->extract_problem_meta,
- 'Reported in the Roads category by Oxfordshire County Council at 15:17, Tue 10 January 2012',
+ 'Reported in the Roads category by Oxfordshire County Council at 15:17, Tue 10 January 2012 (Hide your name?)',
'correct problem meta information for user without relevant permissions';
$mech->log_out_ok;
@@ -574,7 +574,7 @@ subtest "check brackets don't appear when username and report name are the same"
$mech->log_in_ok( $oxfordshireuser->email );
ok $mech->get("/report/$report_id"), "get '/report/$report_id'";
is $mech->extract_problem_meta,
- 'Reported in the Roads category by Council User at 15:17, Tue 10 January 2012',
+ 'Reported in the Roads category by Council User at 15:17, Tue 10 January 2012 (Hide your name?)',
'correct problem meta information';
};