Skip to content

Commit

Permalink
Merge pull request #3113 from alphagov/bump-gds-api-89
Browse files Browse the repository at this point in the history
Update world location code for breaking changes in `gds-api-adapters` version 89.0.0
  • Loading branch information
brucebolt authored Jul 19, 2023
2 parents a147f9f + aef9190 commit 0f07811
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ GEM
factory_bot (6.2.1)
activesupport (>= 5.0.0)
ffi (1.15.5)
gds-api-adapters (88.2.0)
gds-api-adapters (89.0.0)
addressable
link_header
null_logger
Expand Down Expand Up @@ -445,7 +445,7 @@ GEM
pry-byebug (3.10.1)
byebug (~> 11.0)
pry (>= 0.13, < 0.15)
public_suffix (5.0.1)
public_suffix (5.0.3)
puma (6.3.0)
nio4r (~> 2.0)
racc (1.7.1)
Expand Down
2 changes: 1 addition & 1 deletion app/lib/registries/world_locations_registry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def fetch_locations
end

def fetch_locations_from_worldwide_api
Services.worldwide_api.world_locations.with_subsequent_pages.to_a
Services.worldwide_api.world_locations.to_a
end
end
end
2 changes: 1 addition & 1 deletion spec/lib/registries/world_locations_registry_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

def world_locations_api_is_unavailable
base_url = GdsApi::TestHelpers::Worldwide::WORLDWIDE_API_ENDPOINT
stub_request(:get, "#{base_url}/api/world-locations").to_return(status: 500)
stub_request(:get, "#{base_url}/api/content/world").to_return(status: 500)
end

def clear_cache
Expand Down

0 comments on commit 0f07811

Please sign in to comment.