Minor improvements to CI_API_V4_URL variable exposure

This commit is contained in:
Grzegorz Bizon 2019-01-03 14:09:53 +01:00
parent 5e99a077ec
commit 476cba6ff3
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -18,7 +18,7 @@ module API
end
def root_url
expose_url(root_path)
@root_url ||= expose_url(root_path)
end
def to_s

View file

@ -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