diff options
author | Tony <anton.romantsov@gmail.com> | 2017-08-03 10:43:24 +0300 |
---|---|---|
committer | Tony <anton.romantsov@gmail.com> | 2017-08-03 16:42:11 +0300 |
commit | 3c8b2ae168edafbd6158d392f14a757873f817fd (patch) | |
tree | fff99aa9b74cce45f9e2a58d8e3739aea3516426 /spec/requests/api/environments_spec.rb | |
parent | dc412b48693668f7fba3adea57b8be76685afa76 (diff) | |
download | gitlab-ce-3c8b2ae168edafbd6158d392f14a757873f817fd.tar.gz |
Expose more attributes to unauthenticated GET /projects/:id
Diffstat (limited to 'spec/requests/api/environments_spec.rb')
-rw-r--r-- | spec/requests/api/environments_spec.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/requests/api/environments_spec.rb b/spec/requests/api/environments_spec.rb index 4c5ded7a492..87716c6fe3a 100644 --- a/spec/requests/api/environments_spec.rb +++ b/spec/requests/api/environments_spec.rb @@ -13,7 +13,14 @@ describe API::Environments do describe 'GET /projects/:id/environments' do context 'as member of the project' do it 'returns project environments' do - project_data_keys = %w(id http_url_to_repo web_url name name_with_namespace path path_with_namespace) + project_data_keys = %w( + id description default_branch tag_list + ssh_url_to_repo http_url_to_repo web_url + name name_with_namespace + path path_with_namespace + star_count forks_count + created_at last_activity_at + ) get api("/projects/#{project.id}/environments", user) |