Skip to content
Snippets Groups Projects
Commit e08d5422 authored by Sean McGivern's avatar Sean McGivern
Browse files

Merge branch 'rd-ee-backport-add-support-for-gl-com-trials' into 'master'

Backport some changes made for this spec in EE

See merge request gitlab-org/gitlab-ce!20318
parents f3edbafe 1733a9dd
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Loading
Loading
@@ -23,10 +23,10 @@ describe API::Namespaces do
 
expect(response).to have_gitlab_http_status(200)
expect(response).to include_pagination_headers
expect(group_kind_json_response.keys).to contain_exactly('id', 'kind', 'name', 'path', 'full_path',
'parent_id', 'members_count_with_descendants')
expect(group_kind_json_response.keys).to include('id', 'kind', 'name', 'path', 'full_path',
'parent_id', 'members_count_with_descendants')
 
expect(user_kind_json_response.keys).to contain_exactly('id', 'kind', 'name', 'path', 'full_path', 'parent_id')
expect(user_kind_json_response.keys).to include('id', 'kind', 'name', 'path', 'full_path', 'parent_id')
end
 
it "admin: returns an array of all namespaces" do
Loading
Loading
@@ -58,8 +58,8 @@ describe API::Namespaces do
 
owned_group_response = json_response.find { |resource| resource['id'] == group1.id }
 
expect(owned_group_response.keys).to contain_exactly('id', 'kind', 'name', 'path', 'full_path',
'parent_id', 'members_count_with_descendants')
expect(owned_group_response.keys).to include('id', 'kind', 'name', 'path', 'full_path',
'parent_id', 'members_count_with_descendants')
end
 
it "returns correct attributes when user cannot admin group" do
Loading
Loading
@@ -69,7 +69,7 @@ describe API::Namespaces do
 
guest_group_response = json_response.find { |resource| resource['id'] == group1.id }
 
expect(guest_group_response.keys).to contain_exactly('id', 'kind', 'name', 'path', 'full_path', 'parent_id')
expect(guest_group_response.keys).to include('id', 'kind', 'name', 'path', 'full_path', 'parent_id')
end
 
it "user: returns an array of namespaces" do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment