summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2017-08-24 18:07:45 +0200
committerRobert Schilling <rschilling@student.tugraz.at>2017-08-24 18:07:45 +0200
commit8ecd9b574f82ffb04aa789d2ab1979a0af5dd6f4 (patch)
tree1d23a2458e48013cc89d5e0d9277404bd4238c3a /spec/support
parent93ad83443a4d3b929e817d0dce174cda9aff3393 (diff)
downloadgitlab-ce-8ecd9b574f82ffb04aa789d2ab1979a0af5dd6f4.tar.gz
Remove leftover API helper for removed CI APIremove-ci-api-leftovers
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/api_helpers.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/support/api_helpers.rb b/spec/support/api_helpers.rb
index ac0aaa524b7..01aca74274c 100644
--- a/spec/support/api_helpers.rb
+++ b/spec/support/api_helpers.rb
@@ -45,18 +45,4 @@ module ApiHelpers
oauth_access_token: oauth_access_token
)
end
-
- def ci_api(path, user = nil)
- "/ci/api/v1/#{path}" +
-
- # Normalize query string
- (path.index('?') ? '' : '?') +
-
- # Append private_token if given a User object
- if user.respond_to?(:private_token)
- "&private_token=#{user.private_token}"
- else
- ''
- end
- end
end