Minor improvements to CI_API_V4_URL variable exposure
This commit is contained in:
parent
5e99a077ec
commit
476cba6ff3
3 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
title: Expose CI/CD predefined variable
|
||||
title: Expose CI/CD predefined variable `CI_API_V4_URL`
|
||||
merge_request: 23936
|
||||
author:
|
||||
type: added
|
||||
|
|
|
@ -18,7 +18,7 @@ module API
|
|||
end
|
||||
|
||||
def root_url
|
||||
expose_url(root_path)
|
||||
@root_url ||= expose_url(root_path)
|
||||
end
|
||||
|
||||
def to_s
|
||||
|
|
|
@ -3504,7 +3504,7 @@ describe Project do
|
|||
expect(project.api_variables.first[:value]).to include '/api/v4'
|
||||
end
|
||||
|
||||
it 'contains an URL variable for every supported API version' do
|
||||
it 'contains a URL variable for every supported API version' do
|
||||
supported_versions = API::API.versions.select do |version|
|
||||
API::API.routes.select { |route| route.version == version }.many?
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue