diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-14 16:33:31 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-14 16:33:31 +0400 |
commit | 634cbd71380f595f6f44ce93399b92fbee37f98f (patch) | |
tree | c421f7fd1b2cfbf396f8765e948b19fa47d1fd6e /spec/support/api_helpers.rb | |
parent | e6224942cee8f02d96e51098552a738f1d89860f (diff) |
Refactor API classes. So api classes like Gitlab::Issues become API::Issues
Diffstat (limited to 'spec/support/api_helpers.rb')
-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 c4514bf38be..ec9a326a1ea 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/#{API::API.version}#{path}" + # Normalize query string (path.index('?') ? '' : '?') + |