Consider adding API objects similar to Page objects
The following discussion from gitlab-ce!19555 should be addressed:
-
@grzesiek started a discussion: (+1 comment) When I see code like this, I instantly think that we should have API objects, that are similar to Page Objects, to make API calls reusable. Something like
API::Project.new(path).delete!
. Might be out of scope here, because it would probably mean that we should refactor some existing specs.