Skip to content

Commit

Permalink
Change the special case to not have the "the"
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Christopher Baines committed Aug 6, 2018
1 parent e6d6d13 commit 84cc5f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/services/world_location_base_path.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion test/services/world_location_base_path_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 84cc5f8

Please sign in to comment.