diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-01-06 14:18:16 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-01-06 14:18:16 +0000 |
commit | bc7b6ef0d99a10f5c5d370df195cb5f80f145b0a (patch) | |
tree | b0839b98d8ef3ac9fa8fa43f57d169326e5ae3bf /t | |
parent | 5a7addcf4d1796135cd44856add81305a857023b (diff) |
Fix test for when long domain name pushes things over one line.
Diffstat (limited to 't')
-rw-r--r-- | t/app/controller/alert_new.t | 2 | ||||
-rw-r--r-- | t/app/model/alert_type.t | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/t/app/controller/alert_new.t b/t/app/controller/alert_new.t index 950666d2d..5ea73625a 100644 --- a/t/app/controller/alert_new.t +++ b/t/app/controller/alert_new.t @@ -452,7 +452,7 @@ subtest "Test normal alert signups and that alerts are sent" => sub { $count++ if $_->body =~ /The following updates have been left on this problem:/; $count++ if $_->body =~ /The following new problems have been reported to City of\s*Edinburgh Council:/; $count++ if $_->body =~ /The following nearby problems have been added:/; - $count++ if $_->body =~ / - Testing, EH1 1BB/; + $count++ if $_->body =~ / -\s+Testing, EH1 1BB/; } is $count, 5, 'Five emails with the right things in them'; 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'; |