add API version
This commit is contained in:
parent
378dc55d29
commit
fbd559d44f
5 changed files with 37 additions and 34 deletions
7
spec/support/api.rb
Normal file
7
spec/support/api.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
def api_prefix
|
||||
"/api/#{Gitlab::API::VERSION}"
|
||||
end
|
||||
|
||||
def json_response
|
||||
JSON.parse(response.body)
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue