aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-05-04 19:07:11 +0100
committerStruan Donald <struan@exo.org.uk>2011-05-04 19:07:11 +0100
commit5adb3f33342dda3d2a904c8dda2a4281366094c3 (patch)
tree22d8b622e22a3f09800dc118da676e615baed2cd /t
parentb55733c9614b2f8ebd09d31f3c2750959942effa (diff)
test that we are getting the titles right as well
Diffstat (limited to 't')
-rw-r--r--t/app/controller/alert.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/app/controller/alert.t b/t/app/controller/alert.t
index 4f5ee818c..d644c4f78 100644
--- a/t/app/controller/alert.t
+++ b/t/app/controller/alert.t
@@ -10,16 +10,19 @@ ok( my $mech = Test::WWW::Mechanize::Catalyst->new, 'Created mech object' );
# check that we can get the page
$mech->get_ok('/alert');
+$mech->title_like(qr/^Local RSS feeds and email alerts/);
$mech->content_contains('Local RSS feeds and email alerts');
$mech->content_contains('html lang="en-gb"');
# check that we can get list page
$mech->get_ok('/alert/list');
+$mech->title_like(qr/^Local RSS feeds and email alerts/);
$mech->content_contains('Local RSS feeds and email alerts');
$mech->content_contains('html lang="en-gb"');
$mech->get_ok('/alert/list?pc=ZZ99ZY');
-$mech->content_contains('RSS feeds and email alerts for ZZ9&nbsp;9ZY');
+$mech->title_like(qr/^Local RSS feeds and email alerts for ZZ9&nbsp;9ZY/);
+$mech->content_contains('Local RSS feeds and email alerts for ZZ9&nbsp;9ZY');
$mech->content_contains('html lang="en-gb"');
done_testing();