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:
authorsliaquat <sliaquat@gitlab.com>2018-09-12 13:55:54 +0300
committerSanad Liaquat <sliaquat@gitlab.com>2018-11-15 13:58:11 +0300
commit365fc927e03c874ae50c342cd8934d930bb47aa0 (patch)
tree80b79894efac330df5b9cf65698ec0ac2678923f
parentdbb451ea6324012605e62b8eae8a733a005e765e (diff)
Assert on entire expected hash and specify per_page
-rw-r--r--qa/qa/specs/features/api/1_manage/groups_spec.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/qa/qa/specs/features/api/1_manage/groups_spec.rb b/qa/qa/specs/features/api/1_manage/groups_spec.rb
index 4621ce7a0e6..864b92c7fba 100644
--- a/qa/qa/specs/features/api/1_manage/groups_spec.rb
+++ b/qa/qa/specs/features/api/1_manage/groups_spec.rb
@@ -63,7 +63,9 @@ module QA
expect(json_body).to match a_hash_including(expected_response)
- get group_request_by_id.url
+ get_group_request_by_id = Runtime::API::Request.new(@api_client, "/groups/#{created_group_id}?per_page=100")
+
+ get get_group_request_by_id.url
expect_status(200)
expect(json_body).to match a_hash_including(expected_response)
@@ -73,9 +75,9 @@ module QA
get groups_request.url
expect_status(200)
- expect(json_body).not_to include a_hash_including(id: created_group_id)
+ expect(json_body).not_to include a_hash_including(expected_response)
- get group_request_by_id.url
+ get get_group_request_by_id.url
expect_status(404)
expect(json_body).to match({ message: "404 Group Not Found" })
end