aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand/tfl.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-12-10 16:10:45 +0000
committerMatthew Somerville <matthew@mysociety.org>2019-12-10 16:24:16 +0000
commitfccaeb5bddf034e7e3e35184e8e49748e3a77113 (patch)
treeb2a42d5732e2a0baf3578138d3e060b608ae9d72 /t/cobrand/tfl.t
parent7c844acae6bbb7f5d64db8d23fb6f01ccb829e5e (diff)
Do not hard code site name in database fixture.
This also lets it be cobrand specific.
Diffstat (limited to 't/cobrand/tfl.t')
-rw-r--r--t/cobrand/tfl.t10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/cobrand/tfl.t b/t/cobrand/tfl.t
index 287a8c98e..69b112323 100644
--- a/t/cobrand/tfl.t
+++ b/t/cobrand/tfl.t
@@ -781,6 +781,7 @@ FixMyStreet::override_config {
$staffuser->update;
};
};
+
FixMyStreet::override_config {
ALLOWED_COBRANDS => 'tfl',
MAPIT_URL => 'http://mapit.uk/',
@@ -813,6 +814,15 @@ FixMyStreet::override_config {
$staffuser->unset_extra_metadata('2fa_secret');
$staffuser->update;
};
+
+ subtest 'RSS feed has correct name' => sub {
+ $mech->get_ok('/rss/xsl');
+ $mech->content_contains('RSS feed from the Street Care website');
+ $mech->content_lacks('FixMyStreet');
+ $mech->get_ok('/rss/problems');
+ $mech->content_contains('New problems on Street Care');
+ $mech->content_lacks('FixMyStreet');
+ };
};
FixMyStreet::override_config {