aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-11-13 12:45:11 +0000
committerMatthew Somerville <matthew@mysociety.org>2019-11-15 14:09:56 +0000
commitdd05c9ca3f72c3639f6fb2f4261e02531840b908 (patch)
treeb3c3fb311df7e7f62a12462bf0e2df7bcf78aad5 /t/app/controller
parent19ec44cbdf19f8c5711effff76735f20290e3855 (diff)
Add cobrand-specific XSL to RSS feeds.
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/rss.t17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/app/controller/rss.t b/t/app/controller/rss.t
index 04e63711c..37543ad4f 100644
--- a/t/app/controller/rss.t
+++ b/t/app/controller/rss.t
@@ -151,4 +151,21 @@ subtest "check RSS feeds on cobrand have correct URLs for non-cobrand reports" =
$mech->content_contains($expected2, 'cobrand area report point to cobrand url');
};
+subtest 'Check XSL' => sub {
+ $mech->host('www.fixmystreet.com');
+ FixMyStreet::override_config {
+ ALLOWED_COBRANDS => 'fixmystreet',
+ }, sub {
+ $mech->get_ok('/rss/xsl');
+ };
+ $mech->content_contains('/cobrands/fixmystreet.com/images/email-logo.gif');
+ $mech->content_contains('FixMyStreet');
+ FixMyStreet::override_config {
+ ALLOWED_COBRANDS => 'bexley',
+ }, sub {
+ $mech->get_ok('/rss/xsl');
+ };
+ $mech->content_contains('/cobrands/bexley/images/logo.png');
+};
+
done_testing();