Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2018-08-26 20:02:09 +0300
committerRobert Schilling <rschilling@student.tugraz.at>2019-01-31 15:49:50 +0300
commitf17d10c451138f801176e2bde3f8bc9ba31823e9 (patch)
tree68a24a2860895907c78baedba723b9463eb47fcf /spec/requests/api/group_labels_spec.rb
parentcc6d45997263fa5110924856fdf04c870a482daf (diff)
Use a schema matcher to capture all entity members
Diffstat (limited to 'spec/requests/api/group_labels_spec.rb')
-rw-r--r--spec/requests/api/group_labels_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/requests/api/group_labels_spec.rb b/spec/requests/api/group_labels_spec.rb
index 3eeeae2aaca..8e368a0ce39 100644
--- a/spec/requests/api/group_labels_spec.rb
+++ b/spec/requests/api/group_labels_spec.rb
@@ -14,6 +14,7 @@ describe API::GroupLabels do
get api("/groups/#{group.id}/labels", user)
expect(response).to have_gitlab_http_status(200)
+ expect(response).to match_response_schema('public_api/v4/group_labels')
expect(response).to include_pagination_headers
expect(json_response).to be_an Array
expect(json_response.size).to eq(2)