diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-11-29 13:42:22 -0800 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-12-01 02:03:51 -0800 |
commit | 968c09ae919ce745a158764d49b3aff280324eb5 (patch) | |
tree | 825ddf4151a7adab6b2c0729f614f682e2219b1c /spec | |
parent | c177593e2cf282f09934640bd597e6e3c5f32893 (diff) | |
download | gitlab-ce-968c09ae919ce745a158764d49b3aff280324eb5.tar.gz |
API version returns last version set
* fixed in grape v0.2.2
Diffstat (limited to 'spec')
-rw-r--r-- | spec/support/api_helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/api_helpers.rb b/spec/support/api_helpers.rb index 7d9011971dd..c4514bf38be 100644 --- a/spec/support/api_helpers.rb +++ b/spec/support/api_helpers.rb @@ -18,7 +18,7 @@ module ApiHelpers # # Returns the relative path to the requested API resource def api(path, user = nil) - "/api/#{Gitlab::API::VERSION}#{path}" + + "/api/#{Gitlab::API.version}#{path}" + # Normalize query string (path.index('?') ? '' : '?') + |