aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2013-09-05 16:20:06 +0100
committerEdmund von der Burg <evdb@mysociety.org>2013-09-10 15:40:08 +0100
commit8e7e991b7fa4a99104a5b49244d034c96ce07222 (patch)
treec4a5c1a6401ee9f4e7528f1f89fca24205b97922
parentd6b5c4b9b71c394cd436193d85a207f7334e09f0 (diff)
Don't use a domain name when testing that the default ALLOWED_COBRANDS will match to the wrong cobrand.
-rw-r--r--t/app/controller/report_display.t4
-rw-r--r--t/cobrand/zurich.t2
2 files changed, 3 insertions, 3 deletions
diff --git a/t/app/controller/report_display.t b/t/app/controller/report_display.t
index 7904b6736..62a5b3667 100644
--- a/t/app/controller/report_display.t
+++ b/t/app/controller/report_display.t
@@ -100,7 +100,7 @@ subtest "Zurich unconfirmeds are 200" => sub {
if ( !FixMyStreet::Cobrand->exists('zurich') ) {
plan skip_all => 'Skipping Zurich test without Zurich cobrand';
}
- $mech->host( 'zurich.fixmystreet.com' );
+ $mech->host( 'zurich.example.com' );
ok $report->update( { state => 'unconfirmed' } ), 'unconfirm report';
$mech->get_ok("/report/$report_id");
$mech->content_contains( '&Uuml;berpr&uuml;fung ausstehend' );
@@ -403,7 +403,7 @@ subtest "Zurich banners are displayed correctly" => sub {
if ( !FixMyStreet::Cobrand->exists('zurich') ) {
plan skip_all => 'Skipping Zurich test without Zurich cobrand';
}
- $mech->host( 'zurich.fixmystreet.com' );
+ $mech->host( 'zurich.example.com' );
for my $test (
{
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t
index d45ae1f4d..cb0a312cc 100644
--- a/t/cobrand/zurich.t
+++ b/t/cobrand/zurich.t
@@ -63,7 +63,7 @@ use FixMyStreet::TestMech;
my $mech = FixMyStreet::TestMech->new;
# Front page test
-ok $mech->host("zurich.fixmystreet.com"), "change host to Zurich";
+ok $mech->host("zurich.example.com"), "change host to Zurich";
$mech->get_ok('/');
$mech->content_like( qr/zurich/i );