Skip to content

Commit

Permalink
Merge pull request #10260 from DFE-Digital/expose-v16-vendor-api-in-s…
Browse files Browse the repository at this point in the history
…andbox

Expose version 1.6 of the Vendor API in sandbox for testing
  • Loading branch information
avinhurry authored Jan 14, 2025
2 parents 78d4c09 + 3c7bd48 commit c5136e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/lib/vendor_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module VendorAPI
VERSION_1_4 = '1.4'.freeze
VERSION_1_5 = '1.5'.freeze
VERSION_1_6 = '1.6pre'.freeze
VERSION = VERSION_1_5
VERSION = VERSION_1_6

VERSIONS = {
'1.0' => [
Expand Down
2 changes: 1 addition & 1 deletion spec/system/api_docs/api_docs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ def when_i_enter_an_incorrect_api_version_in_the_url
end

def then_i_get_redirected_to_the_latest_production_version
expect(page).to have_current_path api_docs_versioned_reference_path(api_version: "v#{VendorAPI::VERSION}"), ignore_query: true
expect(page).to have_current_path api_docs_versioned_reference_path(api_version: "v#{AllowedCrossNamespaceUsage::VendorAPIInfo.production_version}"), ignore_query: true
end
end

0 comments on commit c5136e6

Please sign in to comment.