aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/about.t
diff options
context:
space:
mode:
Diffstat (limited to 't/app/controller/about.t')
-rw-r--r--t/app/controller/about.t18
1 files changed, 18 insertions, 0 deletions
diff --git a/t/app/controller/about.t b/t/app/controller/about.t
new file mode 100644
index 000000000..2ac628367
--- /dev/null
+++ b/t/app/controller/about.t
@@ -0,0 +1,18 @@
+use strict;
+use warnings;
+
+use Test::More;
+use Test::WWW::Mechanize::Catalyst 'FixMyStreet::App';
+
+ok( my $mech = Test::WWW::Mechanize::Catalyst->new, 'Created mech object' );
+
+# check that we can get the page
+$mech->get_ok('/about');
+$mech->content_contains('FixMyStreet.com');
+
+# check that geting the page as EHA produces a different page
+ok $mech->host("www.reportemptyhomes.co.uk"), 'change host to reportemptyhomes';
+$mech->get_ok('/about');
+$mech->content_lacks('FixMyStreet.com');
+
+done_testing();