From 84cc5f842332600b8a0cbf3da2c15f7ff189b555 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Mon, 6 Aug 2018 10:25:04 +0100 Subject: [PATCH] Change the special case to not have the "the" This is the working URL [1], so change the special case to use the working URL. 1: https://www.gov.uk/world/south-georgia-and-south-sandwich-islands/news --- app/services/world_location_base_path.rb | 2 +- test/services/world_location_base_path_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/world_location_base_path.rb b/app/services/world_location_base_path.rb index 756028816..8fd2ded7a 100644 --- a/app/services/world_location_base_path.rb +++ b/app/services/world_location_base_path.rb @@ -22,7 +22,7 @@ class WorldLocationBasePath EXCEPTIONAL_CASES = { "Democratic Republic of Congo" => "democratic-republic-of-congo", - "South Georgia and the South Sandwich Islands" => "south-georgia-and-the-south-sandwich-islands", + "South Georgia and the South Sandwich Islands" => "south-georgia-and-south-sandwich-islands", "St Pierre & Miquelon" => "st-pierre-miquelon" }.freeze diff --git a/test/services/world_location_base_path_test.rb b/test/services/world_location_base_path_test.rb index c987a6e33..69468683f 100644 --- a/test/services/world_location_base_path_test.rb +++ b/test/services/world_location_base_path_test.rb @@ -22,7 +22,7 @@ class WorldLocationBasePathWithoutBasePath < ActiveSupport::TestCase class WorldLocationBasePathForExceptionalCase < ActiveSupport::TestCase { "Democratic Republic of Congo" => "democratic-republic-of-congo", - "South Georgia and the South Sandwich Islands" => "south-georgia-and-the-south-sandwich-islands", + "South Georgia and the South Sandwich Islands" => "south-georgia-and-south-sandwich-islands", "St Pierre & Miquelon" => "st-pierre-miquelon" }.each do |title, expected_slug| test "returns /world/#{expected_slug}/news" do