diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 11:27:35 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 11:27:35 +0300 |
commit | 7e9c479f7de77702622631cff2628a9c8dcbc627 (patch) | |
tree | c8f718a08e110ad7e1894510980d2155a6549197 /spec/support/helpers/lfs_http_helpers.rb | |
parent | e852b0ae16db4052c1c567d9efa4facc81146e88 (diff) |
Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42
Diffstat (limited to 'spec/support/helpers/lfs_http_helpers.rb')
-rw-r--r-- | spec/support/helpers/lfs_http_helpers.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/support/helpers/lfs_http_helpers.rb b/spec/support/helpers/lfs_http_helpers.rb index 0537b122040..199d5e70e32 100644 --- a/spec/support/helpers/lfs_http_helpers.rb +++ b/spec/support/helpers/lfs_http_helpers.rb @@ -31,16 +31,16 @@ module LfsHttpHelpers post(url, params: params, headers: headers) end - def batch_url(project) - "#{project.http_url_to_repo}/info/lfs/objects/batch" + def batch_url(container) + "#{container.http_url_to_repo}/info/lfs/objects/batch" end - def objects_url(project, oid = nil, size = nil) - File.join(["#{project.http_url_to_repo}/gitlab-lfs/objects", oid, size].compact.map(&:to_s)) + def objects_url(container, oid = nil, size = nil) + File.join(["#{container.http_url_to_repo}/gitlab-lfs/objects", oid, size].compact.map(&:to_s)) end - def authorize_url(project, oid, size) - File.join(objects_url(project, oid, size), 'authorize') + def authorize_url(container, oid, size) + File.join(objects_url(container, oid, size), 'authorize') end def download_body(objects) |