aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/model
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-01-06 14:18:16 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-01-06 14:18:16 +0000
commitbc7b6ef0d99a10f5c5d370df195cb5f80f145b0a (patch)
treeb0839b98d8ef3ac9fa8fa43f57d169326e5ae3bf /t/app/model
parent5a7addcf4d1796135cd44856add81305a857023b (diff)
Fix test for when long domain name pushes things over one line.
Diffstat (limited to 't/app/model')
-rw-r--r--t/app/model/alert_type.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/app/model/alert_type.t b/t/app/model/alert_type.t
index 1adc584d7..6767d43fc 100644
--- a/t/app/model/alert_type.t
+++ b/t/app/model/alert_type.t
@@ -199,7 +199,7 @@ for my $test (
$mech->email_count_is( 1 );
my $email = $mech->get_email;
my $pc = $test->{expected_postcode};
- my $title = $report->title;
+ (my $title = $report->title) =~ s/ /\\s+/;
my $body = $email->body;
like $body, qr#report/$report_id - $title, $pc#, 'email contains expected postcode';