gitlabhq/spec/support/api.rb

8 lines
103 B
Ruby
Raw Normal View History

2012-07-04 09:48:00 +02:00
def api_prefix
"/api/#{Gitlab::API::VERSION}"
end
def json_response
JSON.parse(response.body)
end