gitlab-org--gitlab-foss/spec/support/api.rb

8 lines
103 B
Ruby

def api_prefix
"/api/#{Gitlab::API::VERSION}"
end
def json_response
JSON.parse(response.body)
end