Skip to content

Commit

Permalink
Rename url in test helpers
Browse files Browse the repository at this point in the history
This endpoint is now deprecated (See #1298)
  • Loading branch information
pezholio committed Nov 28, 2024
1 parent e6c398e commit 0ae9c6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/gds_api/test_helpers/publishing_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def stub_publishing_api_has_embedded_content(
order: nil,
rollup: {}
)
url = "#{PUBLISHING_API_V2_ENDPOINT}/content/#{content_id}/embedded"
url = "#{PUBLISHING_API_V2_ENDPOINT}/content/#{content_id}/host-content"

query = {
"page" => page_number,
Expand All @@ -418,7 +418,7 @@ def stub_publishing_api_has_embedded_content_for_any_content_id(
order: nil,
rollup: {}
)
url = %r{\A#{PUBLISHING_API_V2_ENDPOINT}/content/[0-9a-fA-F-]{36}/embedded}
url = %r{\A#{PUBLISHING_API_V2_ENDPOINT}/content/[0-9a-fA-F-]{36}/host-content}

query = {
"page" => page_number,
Expand Down

0 comments on commit 0ae9c6f

Please sign in to comment.