aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-08-21 09:15:34 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-08-21 09:15:34 +0100
commitd685d9d1230e958a8525e33dbe3fa2819afbad48 (patch)
treea6e9122af1a2341473debbd6a5a315e940ab9d52 /t/app/controller
parent0caded8cc55ef78d9e65089387e97532566d0182 (diff)
parent45e2366c1f86339b33218074a0ac1359250e6d89 (diff)
Merge branch 'user-agent-in-contact'
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/contact.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/app/controller/contact.t b/t/app/controller/contact.t
index 4f255f058..cb299d161 100644
--- a/t/app/controller/contact.t
+++ b/t/app/controller/contact.t
@@ -309,7 +309,7 @@ for my $test (
is $email->header('From'), "\"$test->{fields}->{name}\" <$test->{fields}->{em}>", 'from';
my $body = $mech->get_text_body_from_email($email);
like $body, qr/$test->{fields}->{message}/, 'body';
- like $body, qr/Sent by contact.cgi on \S+. IP address (?:\d{1,3}\.){3,}\d{1,3}/, 'body footer';
+ like $body, qr/Sent by contact form on \S+.\s+IP address (?:\d{1,3}\.){3,}\d{1,3}, user agent ./, 'body footer';
my $problem_id = $test->{fields}{id};
like $body, qr/Complaint about report $problem_id/, 'reporting a report'
if $test->{fields}{id};