diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-14 15:33:31 +0300 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-14 15:33:31 +0300 |
| commit | 634cbd71380f595f6f44ce93399b92fbee37f98f (patch) | |
| tree | c421f7fd1b2cfbf396f8765e948b19fa47d1fd6e /spec/support | |
| parent | e6224942cee8f02d96e51098552a738f1d89860f (diff) | |
| download | gitlab-ce-634cbd71380f595f6f44ce93399b92fbee37f98f.tar.gz | |
Refactor API classes. So api classes like Gitlab::Issues become API::Issues
Diffstat (limited to 'spec/support')
| -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('?') ? '' : '?') + |
