diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-05-08 11:22:10 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-05-28 15:36:25 +0100 |
commit | d68c2cf2d1a227c4a5f446e78290f0835a869a25 (patch) | |
tree | c357e4bbf66328fbe480d9bede53f47f6d5d7a64 /t/cobrand | |
parent | d41f072a30c4a91925771d38fb224ee271805d8f (diff) |
[Bexley] Initial cobrand.
Diffstat (limited to 't/cobrand')
-rw-r--r-- | t/cobrand/bexley.t | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/t/cobrand/bexley.t b/t/cobrand/bexley.t new file mode 100644 index 000000000..7f67dc1a4 --- /dev/null +++ b/t/cobrand/bexley.t @@ -0,0 +1,32 @@ +use FixMyStreet::TestMech; + +use_ok 'FixMyStreet::Cobrand::Bexley'; + +my $cobrand = FixMyStreet::Cobrand::Bexley->new; +like $cobrand->contact_email, qr/bexley/; +is $cobrand->on_map_default_status, 'open'; +is_deeply $cobrand->disambiguate_location->{bounds}, [ 51.408484, 0.074653, 51.515542, 0.2234676 ]; + +my $mech = FixMyStreet::TestMech->new; + +$mech->create_body_ok(2494, 'London Borough of Bexley'); + +FixMyStreet::override_config { + ALLOWED_COBRANDS => [ 'bexley' ], + MAPIT_URL => 'http://mapit.uk/', +}, sub { + + subtest 'cobrand displays council name' => sub { + ok $mech->host("bexley.fixmystreet.com"), "change host to bexley"; + $mech->get_ok('/'); + $mech->content_contains('Bexley'); + }; + + subtest 'cobrand displays council name' => sub { + $mech->get_ok('/reports/Bexley'); + $mech->content_contains('Bexley'); + }; + +}; + +done_testing(); |