summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2017-08-25 10:19:33 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2017-08-25 10:19:33 +0000
commit48bf8a2ea17825baba52916853ccc7258280ffb2 (patch)
tree690c9de55bade0e5c661e84a5c3a545e9b627d60
parent6b803a06f76aca33f0fbc7df6ee78f4f49ef64ac (diff)
parent8ecd9b574f82ffb04aa789d2ab1979a0af5dd6f4 (diff)
downloadgitlab-ce-48bf8a2ea17825baba52916853ccc7258280ffb2.tar.gz
Merge branch 'remove-ci-api-leftovers' into 'master'
Remove leftover API helper for removed CI API See merge request !13804
-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