gitlabhq/spec/support/api.rb
2012-07-04 00:48:00 -07:00

8 lines
103 B
Ruby

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