Skip to content

Commit

Permalink
Temporarily disable "Get in go far" campaign
Browse files Browse the repository at this point in the history
This campaign is linking to a site with a lapsed certificate, so users
are seeing an SSL error.
  • Loading branch information
tijmenb committed Apr 16, 2018
1 parent 7f72d4c commit 47825b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions app/controllers/concerns/contextual_comms_ab_testable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions test/controllers/contextual_comms_ab_test_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?",
Expand Down

0 comments on commit 47825b4

Please sign in to comment.