add API version

This commit is contained in:
Nihad Abbasov 2012-07-04 00:48:00 -07:00
parent 378dc55d29
commit fbd559d44f
5 changed files with 37 additions and 34 deletions

7
spec/support/api.rb Normal file
View file

@ -0,0 +1,7 @@
def api_prefix
"/api/#{Gitlab::API::VERSION}"
end
def json_response
JSON.parse(response.body)
end