diff options
author | Edmund von der Burg <evdb@mysociety.org> | 2011-02-23 13:58:27 +0000 |
---|---|---|
committer | Edmund von der Burg <evdb@mysociety.org> | 2011-02-23 13:58:27 +0000 |
commit | 1498dfdec73becf769c3596bf41185f003c2a4cf (patch) | |
tree | ecd6b5d780ad74cede79493a960b3cad4ad0480e /t/app/controller | |
parent | 684ae4edc50c66617abe369233005770192d8170 (diff) |
Added About controller
put 'loc' stub in place for i18n in templates
server static files
Diffstat (limited to 't/app/controller')
-rw-r--r-- | t/app/controller/about.t | 18 |
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(); |