aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/uri_for.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-04-20 19:35:31 +0100
committerMatthew Somerville <matthew@mysociety.org>2016-04-20 19:38:32 +0100
commit66eb844d7eaba7155e362dcec8a7a7db8f3dbf4c (patch)
tree25debcbb91cae5d33429ae1dc3120e6d7f627b24 /t/app/uri_for.t
parent97a01fcec2c48e379394e0127888edc2e5bbde91 (diff)
Update tests for cobrand/template changes.
Diffstat (limited to 't/app/uri_for.t')
-rw-r--r--t/app/uri_for.t26
1 files changed, 0 insertions, 26 deletions
diff --git a/t/app/uri_for.t b/t/app/uri_for.t
index 810aade62..9cbcd3767 100644
--- a/t/app/uri_for.t
+++ b/t/app/uri_for.t
@@ -17,7 +17,6 @@ use_ok('FixMyStreet::App');
my $fms_c = ctx_request('http://www.fixmystreet.com/');
my $fgm_c = ctx_request('http://www.fiksgatami.no/');
-my $reh_en_c = ctx_request('http://reportemptyhomes.com/');
is(
$fms_c->uri_for('/bar/baz') . "",
@@ -44,29 +43,4 @@ is(
'FiksGataMi url with lat not zoom'
);
-FixMyStreet::override_config {
- ALLOWED_COBRANDS => [ 'emptyhomes' ],
-}, sub {
- like(
- $reh_en_c->uri_for_email( '/foo' ),
- qr{^http://en.},
- 'adds en to retain language'
- );
-};
-
-# instantiate this here otherwise sets locale to cy and breaks test
-# above
-my $reh_cy_c;
-FixMyStreet::override_config {
- ALLOWED_COBRANDS => [ 'emptyhomes' ],
-}, sub {
- $reh_cy_c = ctx_request('http://cy.reportemptyhomes.com/');
-
- like(
- $reh_cy_c->uri_for_email( '/foo' ),
- qr{^http://cy.},
- 'retains language'
- );
-};
-
done_testing();