diff options
author | sliaquat <sliaquat@gitlab.com> | 2018-09-13 09:15:02 +0300 |
---|---|---|
committer | Sanad Liaquat <sliaquat@gitlab.com> | 2018-11-15 13:58:11 +0300 |
commit | 34d6d486b7cc203d05643a551d37e603085a8481 (patch) | |
tree | 1195c07f100fe6778d5b560c9ab5d07bf5ac4f76 | |
parent | 365fc927e03c874ae50c342cd8934d930bb47aa0 (diff) |
Reorder assertions
-rw-r--r-- | qa/qa/specs/features/api/1_manage/groups_spec.rb | 10 |
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 |