Commit 6e19ff23 authored by Michael Kozono's avatar Michael Kozono

Port mk/fix-broken-master-api-variables to EE

parent 475a6782
...@@ -3815,7 +3815,9 @@ describe Project do ...@@ -3815,7 +3815,9 @@ describe Project do
end end
it 'contains a 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| # 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? API::API.routes.select { |route| route.version == version }.many?
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment