aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-11-14 09:17:14 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-11-14 09:17:14 +0000
commitc6862472ea83b24896421c27149563213bb0f3d1 (patch)
treebb4f8fa4ba6a3ef634612a26e8e0728d31f6990d
parenta609f56fb18cba7ec35c1d88b4473ec5bdfcc335 (diff)
Remove unused function, basic test of front page of some council cobrands.
-rw-r--r--perllib/FixMyStreet/Map.pm4
-rw-r--r--t/cobrand/councils.t18
2 files changed, 18 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/Map.pm b/perllib/FixMyStreet/Map.pm
index d36b91ffe..587c63d25 100644
--- a/perllib/FixMyStreet/Map.pm
+++ b/perllib/FixMyStreet/Map.pm
@@ -52,10 +52,6 @@ sub set_map_class {
$map_class = $str;
}
-sub header_js {
- return $map_class->header_js(@_);
-}
-
sub display_map {
return $map_class->display_map(@_);
}
diff --git a/t/cobrand/councils.t b/t/cobrand/councils.t
new file mode 100644
index 000000000..8fb10cfbe
--- /dev/null
+++ b/t/cobrand/councils.t
@@ -0,0 +1,18 @@
+use strict;
+use warnings;
+use Test::More;
+
+use FixMyStreet::TestMech;
+my $mech = FixMyStreet::TestMech->new;
+
+foreach my $council (qw/southampton reading bromley/) {
+ SKIP: {
+ skip( "Need '$council' in ALLOWED_COBRANDS config", 3 )
+ unless FixMyStreet::Cobrand->exists($council);
+ ok $mech->host("$council.fixmystreet.com"), "change host to $council";
+ $mech->get_ok('/');
+ $mech->content_like( qr/$council/i );
+ }
+}
+
+done_testing();