From 47825b4d7d615e022fcf7915cd6a11e6bab4078e Mon Sep 17 00:00:00 2001 From: Tijmen Brommet Date: Mon, 16 Apr 2018 16:35:43 +0100 Subject: [PATCH] Temporarily disable "Get in go far" campaign This campaign is linking to a site with a lapsed certificate, so users are seeing an SSL error. --- .../concerns/contextual_comms_ab_testable.rb | 4 +--- .../contextual_comms_ab_test_controller_test.rb | 12 ++++++------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/app/controllers/concerns/contextual_comms_ab_testable.rb b/app/controllers/concerns/contextual_comms_ab_testable.rb index fce8ade9e..3587386b8 100644 --- a/app/controllers/concerns/contextual_comms_ab_testable.rb +++ b/app/controllers/concerns/contextual_comms_ab_testable.rb @@ -72,9 +72,7 @@ def whitelisted_campaign_page? def campaign_name @campaign_name ||= - if GET_IN_GO_FAR_PAGES.include?(content_item_path) - :get_in_go_far - elsif EATING_PAGES.include?(content_item_path) + if EATING_PAGES.include?(content_item_path) :eating elsif CHECK_YOUR_PAY_PAGES.include?(content_item_path) :check_your_pay diff --git a/test/controllers/contextual_comms_ab_test_controller_test.rb b/test/controllers/contextual_comms_ab_test_controller_test.rb index 9136013d1..961596538 100644 --- a/test/controllers/contextual_comms_ab_test_controller_test.rb +++ b/test/controllers/contextual_comms_ab_test_controller_test.rb @@ -6,12 +6,12 @@ class ContentItemsControllerTest < ActionController::TestCase # govuk_base_path is an example page that is eligible to show a campaign. CAMPAIGNS = { - get_in_go_far: { - govuk_base_path: "/career-skills-and-training", - title: "Get In Go Far", - description: "Search thousands of apprenticeships from great companies, with more added every day.", - href: "https://www.getingofar.gov.uk/", - }, + # get_in_go_far: { + # govuk_base_path: "/career-skills-and-training", + # title: "Get In Go Far", + # description: "Search thousands of apprenticeships from great companies, with more added every day.", + # href: "https://www.getingofar.gov.uk/", + # }, eating: { govuk_base_path: "/free-school-transport", title: "How healthy is your food?",