Fix broken master api_variables test
This commit is contained in:
parent
303f049358
commit
1d2fe4d99c
1 changed files with 3 additions and 1 deletions
|
@ -3534,7 +3534,9 @@ describe Project do
|
|||
end
|
||||
|
||||
it 'contains a URL variable for every supported API version' do
|
||||
supported_versions = API::API.versions.select do |version|
|
||||
# Ensure future API versions have proper variables defined. We're not doing this for v3.
|
||||
supported_versions = API::API.versions - ['v3']
|
||||
supported_versions = supported_versions.select do |version|
|
||||
API::API.routes.select { |route| route.version == version }.many?
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue