Skip to content

Improve specs in `spec/requests/api/invitations_spec.rb`

What does this MR do and why?

This MR improves the specs in spec/requests/api/invitations_spec.rb.

This spec file did not have test cases around the scenario a Maintainer in a project does not have the rights to control the memberships of OWNERs. This MR adds them.

Also, this scenario was covered in spec/requests/api/members_spec.rb, so this also gives the chance to refactor the file so that we can make the specs in both these files more or less the same.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #371613 (closed)

Edited by Manoj M J

Merge request reports

Loading