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-13 09:15:02 +0300
committerSanad Liaquat <sliaquat@gitlab.com>2018-11-15 13:58:11 +0300
commit34d6d486b7cc203d05643a551d37e603085a8481 (patch)
tree1195c07f100fe6778d5b560c9ab5d07bf5ac4f76
parent365fc927e03c874ae50c342cd8934d930bb47aa0 (diff)
Reorder assertions
-rw-r--r--qa/qa/specs/features/api/1_manage/groups_spec.rb10
1 files changed, 5 insertions, 5 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 864b92c7fba..5f117e7aaf5 100644
--- a/qa/qa/specs/features/api/1_manage/groups_spec.rb
+++ b/qa/qa/specs/features/api/1_manage/groups_spec.rb
@@ -60,7 +60,6 @@ module QA
description: updated_description
expect_status(200)
-
expect(json_body).to match a_hash_including(expected_response)
get_group_request_by_id = Runtime::API::Request.new(@api_client, "/groups/#{created_group_id}?per_page=100")
@@ -72,14 +71,15 @@ module QA
# Delete
delete group_request_by_id.url
expect_status(202)
-
- get groups_request.url
- expect_status(200)
- expect(json_body).not_to include a_hash_including(expected_response)
+ expect(json_body).to match({ message: "202 Accepted" })
get get_group_request_by_id.url
expect_status(404)
expect(json_body).to match({ message: "404 Group Not Found" })
+
+ get groups_request.url
+ expect_status(200)
+ expect(json_body).not_to include a_hash_including(expected_response)
end
end
end